From 7b49176163b881f1af338f16354aedd0fcd99a39 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 7 Oct 2021 09:06:47 +0200 Subject: [PATCH 1/2] tests: Use `$this->expectException()` everywhere instead --- tests/ConnectionTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index fcb753b..b3be288 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -47,11 +47,10 @@ public function testConstructSqliteConnection() $this->assertTrue($db->getAdapter() instanceof Sqlite); } - /** - * @expectedException InvalidArgumentException - */ public function testConstructException() { + $this->expectException(InvalidArgumentException::class); + new Connection(['db' => 'exception']); } From 7ec5278db56fa18e7a39097c3410a176ee98a0b8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 7 Oct 2021 09:12:31 +0200 Subject: [PATCH 2/2] phpunit.xml: Remove invalid syntaxCheck attribute --- phpunit.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index 4e085bb..2abc060 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -7,7 +7,6 @@ convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" - syntaxCheck="false" bootstrap="vendor/autoload.php" >