diff options
author | Davey Shafik <me@daveyshafik.com> | 2016-02-02 12:31:36 -0500 |
---|---|---|
committer | Davey Shafik <me@daveyshafik.com> | 2016-02-02 12:50:51 -0500 |
commit | 3527de42a66bcc7462f86f85bb7fce57ca77b540 (patch) | |
tree | 7243a0d3777b7e1d1904aff7c729813e4bfcc6a6 | |
parent | c5da80f7b8bef294c835ac52706ab4a24934b04a (diff) | |
download | php7-mysql-shim-3527de42a66bcc7462f86f85bb7fce57ca77b540.zip php7-mysql-shim-3527de42a66bcc7462f86f85bb7fce57ca77b540.tar.gz php7-mysql-shim-3527de42a66bcc7462f86f85bb7fce57ca77b540.tar.bz2 |
Allow for different MySQL forks (e.g. MariaDB)
-rw-r--r-- | tests/MySqlShimTest.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php index 736993b..b4ae963 100644 --- a/tests/MySqlShimTest.php +++ b/tests/MySqlShimTest.php @@ -637,11 +637,9 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase $result = mysql_query("SELECT VERSION("); $this->assertFalse($result); - $this->assertEquals( - "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version " . - "for the right syntax to use near '' at line 1", - mysql_error() - ); + $this->assertRegExp( + '@You have an error in your SQL syntax; check the manual that corresponds to your (.*?) ' . + 'server version for the right syntax to use near \'\' at line 1@', mysql_error()); } public function test_mysql_errno() |