diff --git a/src/Fortress/ServerSideValidator.php b/src/Fortress/ServerSideValidator.php index e41ebaa3..e07a87fc 100644 --- a/src/Fortress/ServerSideValidator.php +++ b/src/Fortress/ServerSideValidator.php @@ -33,7 +33,8 @@ class ServerSideValidator extends Validator implements ServerSideValidatorInterf */ protected $translator; - /** Create a new server-side validator. + /** + * Create a new server-side validator. * * @param RequestSchemaInterface $schema A RequestSchemaInterface object, containing the validation rules. * @param Translator $translator A Translator to be used to translate message ids found in the schema. diff --git a/tests/UniformResourceLocator/ResourceLocatorTest.php b/tests/UniformResourceLocator/ResourceLocatorTest.php index 709fdd08..8d7c8e1c 100644 --- a/tests/UniformResourceLocator/ResourceLocatorTest.php +++ b/tests/UniformResourceLocator/ResourceLocatorTest.php @@ -463,7 +463,7 @@ public function testFindResourceOutsideMainPath(): void $resource = $locator->findResource('files://blah.json'); - $this->assertSame(__DIR__.'/Building/Garage/files/blah.json', $resource); + $this->assertSame(Normalizer::normalizePath(__DIR__).'Building/Garage/files/blah.json', $resource); } /** @@ -477,6 +477,6 @@ public function testListResourceOutsideMainPath(): void $resources = $locator->listResources('files://', true); - $this->assertSame(__DIR__.'/Building/Garage/files/blah.json', $resources[0]->getAbsolutePath()); + $this->assertSame(Normalizer::normalizePath(__DIR__).'Building/Garage/files/blah.json', $resources[0]->getAbsolutePath()); } }