Skip to content
This repository
Browse code

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

PHP 5.5
  • Loading branch information...
commit 51af8800f2cef8e9737252365b78baa18c31ec5a 1 parent e26a05c
José Lorenzo Rodríguez authored June 06, 2013
3  lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
@@ -1270,7 +1270,8 @@ public function testLimit() {
1270 1270
 		$this->assertEquals(' LIMIT 10, 20', $result);
1271 1271
 
1272 1272
 		$result = $db->limit(10, 300000000000000000000000000000);
1273  
-		$this->assertEquals(' LIMIT 0, 10', $result);
  1273
+		$scientificNotation = sprintf('%.1E', 300000000000000000000000000000);
  1274
+		$this->assertNotContains($scientificNotation, $result);
1274 1275
 	}
1275 1276
 
1276 1277
 }

0 notes on commit 51af880

Please sign in to comment.
Something went wrong with that request. Please try again.