diff --git a/tests/ClassMapGeneratorTest.php b/tests/ClassMapGeneratorTest.php index 615e18a..32eb3bf 100644 --- a/tests/ClassMapGeneratorTest.php +++ b/tests/ClassMapGeneratorTest.php @@ -283,9 +283,9 @@ public function testGetRawPSR4Violations(): void $classMap = $this->generator->getClassMap(); $rawViolations = $classMap->getRawPsrViolations(); - $classWithoutNameSpaceFilepath = __DIR__ . '/Fixtures/psrViolations/ClassWithoutNameSpace.php'; - $classWithIncorrectSubNamespaceFilepath = __DIR__ . '/Fixtures/psrViolations/ClassWithIncorrectSubNamespace.php'; - $classWithNameSpaceOutsideConfiguredScopeFilepath = __DIR__ . '/Fixtures/psrViolations/ClassWithNameSpaceOutsideConfiguredScope.php'; + $classWithoutNameSpaceFilepath = realpath(__DIR__) . '/Fixtures/psrViolations/ClassWithoutNameSpace.php'; + $classWithIncorrectSubNamespaceFilepath = realpath(__DIR__) . '/Fixtures/psrViolations/ClassWithIncorrectSubNamespace.php'; + $classWithNameSpaceOutsideConfiguredScopeFilepath = realpath(__DIR__) . '/Fixtures/psrViolations/ClassWithNameSpaceOutsideConfiguredScope.php'; self::assertArrayHasKey($classWithoutNameSpaceFilepath, $rawViolations); self::assertCount(1, $rawViolations[$classWithoutNameSpaceFilepath]);