Skip to content

Commit

Permalink
fix tests using regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
UFOMelkor committed Dec 23, 2014
1 parent f169713 commit 960fa44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/MySQLTest/MySQLiIntegrationTest.php
Expand Up @@ -745,9 +745,8 @@ public function testShouldKnowTheNumberOfRowsFromAQueryResult()

public function testShouldProvideStats()
{
$expectedStats = mysql_stat(self::$mysqlLink);
$expectedStats = substr($expectedStats, 0, strrpos($expectedStats, ':'));
$this->assertStringStartsWith($expectedStats, Proxy::stat(self::$link));
$expectedStats = preg_replace('/[0-9]+/', '[0-9]+\.?[0-9]*', mysql_stat(self::$mysqlLink));
$this->assertRegExp('/' . $expectedStats . '/', Proxy::stat(self::$link));
}

public function testShouldPingToTheServer()
Expand Down

0 comments on commit 960fa44

Please sign in to comment.