Skip to content

Commit b601c6e

Browse files
committed
Change NamespaceDirectoryTest::testCreate(), use more imaginary paths.
1 parent 61eafc7 commit b601c6e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/src/NamespaceDirectoryTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ class NamespaceDirectoryTest extends TestCase {
1515

1616
public function testCreate(): void {
1717
$this->assertNamespaceDir(
18-
__DIR__,
19-
__NAMESPACE__,
20-
NamespaceDirectory::create(__DIR__, __NAMESPACE__),
18+
'path/to',
19+
'Acme\Zoo',
20+
NamespaceDirectory::create('path/to', 'Acme\Zoo'),
2121
);
22-
// Non-existing class is no problem.
2322
$this->assertNamespaceDir(
24-
__DIR__ . '/NonExisting',
25-
__NAMESPACE__ . '\\NonExisting',
26-
NamespaceDirectory::create(__DIR__ . '/NonExisting', __NAMESPACE__ . '\\NonExisting'),
23+
'path/to',
24+
'',
25+
NamespaceDirectory::create('path/to', ''),
2726
);
2827
}
2928

0 commit comments

Comments
 (0)