slimphp / Slim-Psr7

PSR-7 implementation for use with Slim 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration tests error

vanodevium opened this issue · comments

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