File: ResponseFactoryTest.php

package info (click to toggle)
php-http-interop-http-factory-tests 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 152 kB
  • sloc: php: 549; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * @noinspection PhpUndefinedConstantInspection
 */

namespace Interop\Http\Factory;

use function class_exists;
use function defined;

final class ResponseFactoryTest extends ResponseFactoryTestCase
{
    /**
     * {@inheritdoc}
     */
    protected function createResponseFactory()
    {
        if (!defined('RESPONSE_FACTORY') || !class_exists(RESPONSE_FACTORY)) {
            self::markTestSkipped('RESPONSE_FACTORY class name not provided');
        }

        return new (RESPONSE_FACTORY);
    }
}