MINOR Argument 2 to assertRegExp should be a string, but the value comes out of the database as an integer sometimes. Cast it to a string.

This commit is contained in:
Sean Harvey 2010-05-19 10:29:12 +00:00
parent a0562ae170
commit 11b60cfe4c

View File

@ -31,7 +31,7 @@ class DbDatetimeTest extends FunctionalTest {
if($this->supportDbDatetime) {
$query = 'SELECT ' . $this->adapter->formattedDatetimeClause('now', '%U');
$result = DB::query($query)->value();
$this->assertRegExp('/^\d*$/', $result);
$this->assertRegExp('/^\d*$/', (string) $result);
$this->assertTrue($result>0);
}
}