The PHP HTTP Group also compiles some PSR-7 integration tests that you
could look at:
https://github.com/php-http/psr7-integration-tests
On Monday, 30 September 2019 03:37:32 UTC+2, Anton Fedonjuk wrote:
>
> Аbstract implementation or real tests at PHPUnit.
> Why I ask about tests for "interfaces" without strict types (in most
> cases)?
> Because many packages writing "Implementation of PSR-*" in description
> don't even suspect that is not true.
> As example: half libraries based on PSR-7 returning wrong result by
> Psr\Http\Message::getHeaders(). They returns headers with normalized names
> (array keys).
> Also some standarts have very abstact description, we do not need to look
> far for an example:
> Call Psr\Http\Message::withHeader('Foo', '...')->withAddedHeader('foo',
> '...');
> What will return method getHeaders: ['Foo' => '...', ...] or ['foo' =>
> '...', ...]?
> I don't found answer in PRS-7 :(
>
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/00aad85a-b08e-4dac-a1fb-17fb55f94bad%40googlegroups.com.