diff -up tests/Phinx/Console/Command/CreateTest.php.old tests/Phinx/Console/Command/CreateTest.php --- tests/Phinx/Console/Command/CreateTest.php.old 2017-12-23 17:43:31.217652943 +0100 +++ tests/Phinx/Console/Command/CreateTest.php 2017-12-23 17:43:39.896696824 +0100 @@ -384,7 +384,7 @@ class CreateTest extends TestCase { if (method_exists($this, 'expectException')) { //PHPUnit 5+ - $this->expectException($exception); + $this->expectException($exceptionName); if ($exceptionMessage !== '') { $this->expectExceptionMessage($exceptionMessage); } diff -up tests/Phinx/Migration/ManagerTest.php.old tests/Phinx/Migration/ManagerTest.php --- tests/Phinx/Migration/ManagerTest.php.old 2017-12-23 17:43:18.862590475 +0100 +++ tests/Phinx/Migration/ManagerTest.php 2017-12-23 17:43:34.709670598 +0100 @@ -5710,7 +5710,7 @@ class ManagerTest extends TestCase { if (method_exists($this, 'expectException')) { //PHPUnit 5+ - $this->expectException($exception); + $this->expectException($exceptionName); if ($exceptionMessage !== '') { $this->expectExceptionMessage($exceptionMessage); }