Skip to content

Commit

Permalink
Attempt fixing windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 25, 2024
1 parent 80dcee2 commit 950a933
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ClassMapGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ 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';
var_dump($rawViolations);
self::assertArrayHasKey($classWithoutNameSpaceFilepath, $rawViolations);
self::assertCount(1, $rawViolations[$classWithoutNameSpaceFilepath]);
self::assertSame('Class ClassWithoutNameSpace located in ./tests/Fixtures/psrViolations/ClassWithoutNameSpace.php does not comply with psr-4 autoloading standard (rule: ExpectedNamespace\ => ./tests/Fixtures/psrViolations). Skipping.', $rawViolations[$classWithoutNameSpaceFilepath][0]['warning']);
Expand Down

0 comments on commit 950a933

Please sign in to comment.