From 04a6bfbda6d87f820a29585195436e1199c3d626 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Thu, 6 Jun 2013 17:55:55 +0200 Subject: [PATCH] Fixing postgres test for PHP 5.5 --- lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php index a3a80d284..e43ec8fbd 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php @@ -1024,7 +1024,8 @@ class PostgresTest extends CakeTestCase { $this->assertEquals(' LIMIT 20 OFFSET 10', $result); $result = $db->limit(10, 300000000000000000000000000000); - $this->assertEquals(' LIMIT 10 OFFSET 0', $result); + $scientificNotation = sprintf('%.1E', 300000000000000000000000000000); + $this->assertNotContains($scientificNotation, $result); } }