Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
timw4mail committed Jan 25, 2018
1 parent f5aaa59 commit 56c9290
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/DriverInterface.php
Expand Up @@ -204,7 +204,7 @@ public function insertBatch(string $table, array $data=[]): array;
* @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
Expand Down
6 changes: 6 additions & 0 deletions tests/Drivers/MySQL/MySQLDriverTest.php
Expand Up @@ -119,6 +119,12 @@ public function testPreparedStatements()

public function testBadPreparedStatement()
{
if (is_a($this, \UnitTestCase::class))
{
$this->markTestSkipped();
return;
}

$this->expectException(TypeError::class);

$sql = <<<SQL
Expand Down
6 changes: 6 additions & 0 deletions tests/Drivers/PgSQL/PgSQLDriverTest.php
Expand Up @@ -149,6 +149,12 @@ public function testPreparedStatements()

public function testBadPreparedStatement()
{
if (is_a($this, \UnitTestCase::class))
{
$this->markTestSkipped();
return;
}

$this->expectException(TypeError::class);

$sql = <<<SQL
Expand Down

0 comments on commit 56c9290

Please sign in to comment.