slimphp / Slim-Psr7

PSR-7 implementation for use with Slim 4
MIT License
131 stars 45 forks source link

Integration tests error #275

Closed vanodevium closed 1 year ago

vanodevium commented 1 year ago
There was 1 failure:

1) Slim\Tests\Psr7\Integration\UriTest::testGetPathNormalizesMultipleLeadingSlashesToSingleSlashToPreventXSS
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'/valid///path'
+'//valid///path'

/home/devium/slim-psr7/vendor/php-http/psr7-integration-tests/src/UriIntegrationTest.php:262

How to reproduce:

  1. clone this repo
  2. composer install
  3. ./vendor/bin/phpunit

❯ php -v PHP 8.2.1 (cli) (built: Jan 13 2023 10:42:21) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.1, Copyright (c) Zend Technologies with Zend OPcache v8.2.1, Copyright (c), by Zend Technologies