From 69f6f85d7988810dd332e3ea95e8178f0a68e95c Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 22 Jul 2022 22:41:35 +0200 Subject: [PATCH] Added failing test for #164 --- Makefile | 2 +- tests/ReferenceContextTest.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ee99b2a..0895d07 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ fix-style: php-cs-fixer.phar $(DOCKER_PHP) vendor/bin/indent --spaces .php_cs.dist $(DOCKER_PHP) ./php-cs-fixer.phar fix src/ --diff -install: composer.lock yarn.lock +install: composer.json package.json $(DOCKER_PHP) composer install --prefer-dist --no-interaction --no-progress --ansi $(DOCKER_NODE) yarn install diff --git a/tests/ReferenceContextTest.php b/tests/ReferenceContextTest.php index b06eb5f..40e65ba 100644 --- a/tests/ReferenceContextTest.php +++ b/tests/ReferenceContextTest.php @@ -179,6 +179,14 @@ public function normalizeUriProvider() '/var/www/api/../definitions.yaml', 'file:///var/www/definitions.yaml', ], + [ + '/var/www/api/schema/../../definitions.yaml', + 'file:///var/www/definitions.yaml', + ], + [ + '/var/www/api/schema/./../definitions.yaml', + 'file:///var/www/api/definitions.yaml', + ], [ '/var/www/api/../definitions.yaml#/components/Pet', 'file:///var/www/definitions.yaml#/components/Pet',