Skip to content

Commit d7ac2a1

Browse files
committed
Tweak missing exception error message a bit
1 parent a40eb00 commit d7ac2a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Subscriber/TestExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static function assertThrows(callable $callable, array $expectedFailure)
7575
}
7676

7777
throw new \InvalidArgumentException(\sprintf(
78-
"Expected to throw \"{$expectedFailure["class"]}\", got \"none\"",
78+
"Expected to throw \"{$expectedFailure["class"]}\", got none",
7979
));
8080
}
8181

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<?php // Exception Expected to throw "RuntimeException", got "none"
1+
<?php // Exception Expected to throw "RuntimeException", got none
22

33
// @throws RuntimeException This example will fail

0 commit comments

Comments
 (0)