diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 844ed73b..989a8082 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -198,7 +198,7 @@ public function testExecuteScript(): void public function testExecuteScriptLogicExceptionWhenDriverIsNotStartedYet(): void { - $this->expectException(LogicException::class); + $this->expectException(\LogicException::class); $client = Client::createChromeClient(); $client->executeScript('return document.querySelector(arguments[0]).innerText;', ['.p-1']); } diff --git a/tests/ProcessManager/WebServerManagerTest.php b/tests/ProcessManager/WebServerManagerTest.php index 6f78a778..961e1091 100644 --- a/tests/ProcessManager/WebServerManagerTest.php +++ b/tests/ProcessManager/WebServerManagerTest.php @@ -78,7 +78,7 @@ public function testPassPantherAppEnv(): void public function testInvalidDocumentRoot(): void { - $this->expectException(RuntimeException::class); + $this->expectException(\Symfony\Component\Process\Exception\RuntimeException::class); $this->expectExceptionMessageMatches('#/not-exists#'); $server = new WebServerManager('/not-exists', '127.0.0.1', 1234);