Skip to content

Commit 9b2761b

Browse files
committed
Skip test when not needed to fix CI build
1 parent 1710460 commit 9b2761b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/EventListener/ExceptionListenerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ public function test_that_it_captures_exception()
461461
*/
462462
public function test_that_it_captures_console_exception(?Command $mockCommand, string $expectedCommandName)
463463
{
464+
if (! class_exists('Symfony\Component\Console\Event\ConsoleExceptionEvent')) {
465+
$this->markTestSkipped('ConsoleExceptionEvent does not exist anymore on Symfony 4');
466+
}
467+
464468
if (null === $mockCommand) {
465469
$this->markTestSkipped('Command missing is not possibile with ConsoleExceptionEvent');
466470
}

0 commit comments

Comments
 (0)