http-interop/http-factory-tests

Unit tests for HTTP factories

Installs: 144 660

Dependents: 35

Suggesters: 1

Security: 0

Stars: 11

Watchers: 9

Forks: 9

Open Issues: 1

pkg:composer/http-interop/http-factory-tests

2.3.0 2025-03-23 23:17 UTC

This package is auto-updated.

Last update: 2025-10-22 18:07:45 UTC


README

To use these unit tests you need to add some config to phpunit.xml.

<phpunit backupGlobals="true">
    <testsuites>
        <testsuite name="Integration tests">
            <directory>./vendor/http-interop/http-factory-tests/test</directory>
        </testsuite>
    </testsuites>
    <php>
      <!-- Fully qualified class names to your classes -->
      <const name="REQUEST_FACTORY" value="Acme\Factory\RequestFactory"/>
      <const name="RESPONSE_FACTORY" value="Acme\Factory\ResponseFactory"/>
      <const name="SERVER_REQUEST_FACTORY" value="Acme\Factory\ServerRequestFactory"/>
      <const name="STREAM_FACTORY" value="Acme\Factory\StreamFactory"/>
      <const name="UPLOADED_FILE_FACTORY" value="Acme\Factory\UploadedFileFactory"/>
      <const name="URI_FACTORY" value="Acme\Factory\UriFactory"/>
    </php>
</phpunit>