Skip to content
Permalink
Browse files

Rewriting assertion to account for the actual case and not breaking in

PHP 5.5
  • Loading branch information...
lorenzo committed Jun 6, 2013
1 parent e26a05c commit 51af8800f2cef8e9737252365b78baa18c31ec5a
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
@@ -1270,7 +1270,8 @@ public function testLimit() {
$this->assertEquals(' LIMIT 10, 20', $result);
$result = $db->limit(10, 300000000000000000000000000000);
$this->assertEquals(' LIMIT 0, 10', $result);
$scientificNotation = sprintf('%.1E', 300000000000000000000000000000);
$this->assertNotContains($scientificNotation, $result);
}
}

0 comments on commit 51af880

Please sign in to comment.
You can’t perform that action at this time.