From 60bee6cd528d6f73696e53833f58dd97bfb95364 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Fri, 1 Jan 2021 11:20:44 -0500 Subject: [PATCH] [minor] replace removed phpunit method (#34) --- tests/Schedule/SelfSchedulingCommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Schedule/SelfSchedulingCommandTest.php b/tests/Schedule/SelfSchedulingCommandTest.php index adc3c45..e9f37f6 100644 --- a/tests/Schedule/SelfSchedulingCommandTest.php +++ b/tests/Schedule/SelfSchedulingCommandTest.php @@ -50,7 +50,7 @@ public function schedule(CommandTask $task): void }; $this->expectException(\InvalidArgumentException::class); - $this->expectExceptionMessageRegExp('/is not a console command/'); + $this->expectExceptionMessageMatches('/is not a console command/'); (new MockScheduleBuilder()) ->addSubscriber(new SelfSchedulingCommandSubscriber([$command]))