Skip to content

Commit d07a0dd

Browse files
committed
fix(test): fix error assertion on invalid logger based on 510c07d
1 parent 510c07d commit d07a0dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/Feature/ConfigurationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testConfigurationWithCustomLoggerThrowsExceptionWhenLogLevelIsAl
8585

8686
public function testConfigurationWithInvalidLoggerThrowsException(): void
8787
{
88-
$this->expectException(\InvalidArgumentException::class);
88+
$this->expectException(ConfigError::class);
8989
$this->expectExceptionMessage('Logger must implement Psr\Log\LoggerInterface');
9090

9191
// Try to pass a non-logger object (should throw exception)
@@ -158,4 +158,3 @@ public function testConfigurationWithAllOptions(): void
158158
$this->assertNotNull($config->getNearestNode());
159159
}
160160
}
161-

0 commit comments

Comments
 (0)