We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d4f955 commit 854a935Copy full SHA for 854a935
1 file changed
tests/src/NamespaceDirectoryTest.php
@@ -97,9 +97,9 @@ public function testWithRealpathRoot(): void {
97
98
$this->callAndAssertException(
99
\RuntimeException::class,
100
- fn () => $this
+ $this
101
->nsdir(__DIR__ . '/non/existing/path', 'Acme\Zoo')
102
- ->withRealpathRoot(),
+ ->withRealpathRoot(...),
103
);
104
}
105
@@ -440,7 +440,7 @@ public function testGetIterator(): void {
440
iterator_to_array($nsdir->getIterator()),
441
442
$bad_nsdir = $this->nsdir(__DIR__ . '/non/existing/subdir', 'Acme\Missing');
443
- $this->callAndAssertException(\RuntimeException::class, fn () => $bad_nsdir->getIterator()->valid());
+ $this->callAndAssertException(\RuntimeException::class, $bad_nsdir->getIterator()->valid(...));
444
445
446
public function testGetElements(): void {
0 commit comments