Skip to content

Releases: php-http/psr7-integration-tests

1.4.0

02 Aug 11:49
@dbu dbu
1.4.0
Compare
Choose a tag to compare

Added

  • Support for PHPUnit 10.

Removed

  • Support for PHP 7.2 and PHPUnit 9.

1.3.0

28 Apr 14:31
@dbu dbu
1.3.0
Compare
Choose a tag to compare

Added

  • Adds UriIntegrationTest::testSpecialCharsInUserInfo and UriIntegrationTest::testAlreadyEncodedUserInfo.
    These validate that usernames and passwords which contain reserved characters (defined by RFC3986) are being encoded
    so that the URI does not contain these reserved characters at any time.

  • Adds support for testing against PSR-7 1.1 and 2.0. In particular, it adapts tests that were verifying invalid parameters threw InvalidArgumentException previously now either throw that OR (more correctly) raise a TypeError.

1.2.0

01 Dec 15:09
@dbu dbu
1.2.0
d11c832
Compare
Choose a tag to compare

Added

  • Adds UriIntegrationTest::testGetPathNormalizesMultipleLeadingSlashesToSingleSlashToPreventXSS(), UriIntegrationTest::testStringRepresentationWithMultipleSlashes(array $test), and RequestIntegrationTest::testGetRequestTargetInOriginFormNormalizesUriWithMultipleLeadingSlashesInPath().
    These validate that a path containing multiple leading slashes is (a) represented with a single slash when calling UriInterface::getPath(), and (b) represented without changes when calling UriInterface::__toString(), including when calling RequestInterface::getRequestTarget() (which returns the path without the URI authority by default, to comply with origin-form).
    This is done to validate mitigations for CVE-2015-3257.

Changed

  • Modifies UriIntegrationTest::testPathWithMultipleSlashes() to only validate multiple slashes in the middle of a path.
    Multiple leading slashes are covered with the newly introduced tests.

Release 1.1.1

20 Feb 07:18
dbc81e5
Compare
Choose a tag to compare

Replace deprecated assertRegExp() with assertMatchesRegularExpression()

Release 1.1.0

17 Oct 08:40
b63c2f5
Compare
Choose a tag to compare

Support for PHP8 and PHPUnit 8 and 9

Release 1.0.0

16 Dec 21:25
c3bb79c
Compare
Choose a tag to compare

Compatible with PHP5