From 56c929088afd4d692d58c5b9e70aceef289d3624 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 25 Jan 2018 15:12:46 -0500 Subject: [PATCH] Minor tweaks --- src/Drivers/DriverInterface.php | 2 +- tests/Drivers/MySQL/MySQLDriverTest.php | 6 ++++++ tests/Drivers/PgSQL/PgSQLDriverTest.php | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Drivers/DriverInterface.php b/src/Drivers/DriverInterface.php index aad7d0a..5f109f3 100644 --- a/src/Drivers/DriverInterface.php +++ b/src/Drivers/DriverInterface.php @@ -204,7 +204,7 @@ interface DriverInterface { * @param string $where * @return int|null */ - public function updateBatch(string $table, $data, $where); + public function updateBatch(string $table, $data, $where): ?int; /** * Get the SQL class for the current driver diff --git a/tests/Drivers/MySQL/MySQLDriverTest.php b/tests/Drivers/MySQL/MySQLDriverTest.php index 81ed6b3..00fae53 100644 --- a/tests/Drivers/MySQL/MySQLDriverTest.php +++ b/tests/Drivers/MySQL/MySQLDriverTest.php @@ -119,6 +119,12 @@ SQL; public function testBadPreparedStatement() { + if (is_a($this, \UnitTestCase::class)) + { + $this->markTestSkipped(); + return; + } + $this->expectException(TypeError::class); $sql = <<markTestSkipped(); + return; + } + $this->expectException(TypeError::class); $sql = <<