mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing failing tests for float formatting.
This commit is contained in:
parent
1e1671ab7f
commit
da6a5fa301
1 changed files with 2 additions and 2 deletions
|
@ -2548,11 +2548,11 @@ class DboSourceTest extends CakeTestCase {
|
|||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->testDb->conditions(array('score BETWEEN ? AND ?' => array(90.1, 95.7)));
|
||||
$expected = " WHERE `score` BETWEEN 90.100000 AND 95.700000";
|
||||
$expected = " WHERE `score` BETWEEN 90.1 AND 95.7";
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->testDb->conditions(array('Post.title' => 1.1));
|
||||
$expected = " WHERE `Post`.`title` = 1.100000";
|
||||
$expected = " WHERE `Post`.`title` = 1.1";
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->testDb->conditions(array('Post.title' => 1.1), true, true, new Post());
|
||||
|
|
Loading…
Add table
Reference in a new issue