Skip to content

Commit

Permalink
Simplify assertion for unit testing on HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Apr 18, 2018
1 parent f9dbdea commit 423523b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Database/OracleMySQLDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testGetConnection() {
$obj->getConnection();
} catch (Exception $ex) {
$this->assertInstanceOf(PDOException::class, $ex);
$this->assertEquals("SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' (using password: YES)", $ex->getMessage());
$this->assertContains("Access denied for user 'username'@'localhost' (using password: YES)", $ex->getMessage());
}
}

Expand Down

0 comments on commit 423523b

Please sign in to comment.