We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12e5f9 commit bfc0b5cCopy full SHA for bfc0b5c
1 file changed
tests/Phug/DevTool/ApplicationTest.php
@@ -112,8 +112,11 @@ public function testRunVendorCommand()
112
*/
113
public function testGetShellCommandPathException()
114
{
115
- self::expectException(RuntimeException::class);
116
- self::expectExceptionMessage('The given command [vendor/bin/doNotExists] was not found');
+ if (method_exists(self::class, 'expectException')) {
+ self::expectException(RuntimeException::class);
117
+ self::expectExceptionMessage('The given command [vendor/bin/doNotExists] was not found');
118
+ }
119
+
120
$app = new Application();
121
$app->runVendorCommand('doNotExists');
122
}
0 commit comments