Skip to content

Commit 2b26ea1

Browse files
committed
Added failing test for #164
1 parent 1bee348 commit 2b26ea1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fix-style: php-cs-fixer.phar
4040
cli:
4141
docker-compose run --rm php bash
4242

43-
install:
43+
install: composer.json package.json
4444
$(DOCKER_PHP) composer install --prefer-dist --no-interaction --no-progress --ansi
4545
$(DOCKER_NODE) yarn install
4646

tests/ReferenceContextTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ public function normalizeUriProvider()
179179
'/var/www/api/../definitions.yaml',
180180
'file:///var/www/definitions.yaml',
181181
],
182+
[
183+
'/var/www/api/schema/../../definitions.yaml',
184+
'file:///var/www/definitions.yaml',
185+
],
186+
[
187+
'/var/www/api/schema/./../definitions.yaml',
188+
'file:///var/www/api/definitions.yaml',
189+
],
182190
[
183191
'/var/www/api/../definitions.yaml#/components/Pet',
184192
'file:///var/www/definitions.yaml#/components/Pet',

0 commit comments

Comments
 (0)