Commit 1e325d88 authored by Armando Lüscher's avatar Armando Lüscher

Ok, so PHP7 handles exceptions a bit differently.

parent 08f47566
...@@ -66,6 +66,8 @@ class CommandTest extends TestCase ...@@ -66,6 +66,8 @@ class CommandTest extends TestCase
$this->getMockForAbstractClass($this->command_namespace, $param); $this->getMockForAbstractClass($this->command_namespace, $param);
} catch (\Exception $e) { } catch (\Exception $e) {
$this->assertContains($error_message, $e->getMessage()); $this->assertContains($error_message, $e->getMessage());
} catch (\Throwable $e) { //For PHP7
$this->assertContains($error_message, $e->getMessage());
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment