mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test: Fixed expected value when float value is specified in DboSource::value() argument.
This commit is contained in:
parent
ddd53dd874
commit
0489533600
1 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ class PostgresTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testValueQuoting() {
|
public function testValueQuoting() {
|
||||||
$this->assertEquals("1.200000", $this->Dbo->value(1.2, 'float'));
|
$this->assertEquals("1.2", $this->Dbo->value(1.2, 'float'));
|
||||||
$this->assertEquals("'1,2'", $this->Dbo->value('1,2', 'float'));
|
$this->assertEquals("'1,2'", $this->Dbo->value('1,2', 'float'));
|
||||||
|
|
||||||
$this->assertEquals("0", $this->Dbo->value('0', 'integer'));
|
$this->assertEquals("0", $this->Dbo->value('0', 'integer'));
|
||||||
|
@ -369,7 +369,7 @@ class PostgresTest extends CakeTestCase {
|
||||||
$this->assertEquals("3.141593", $result);
|
$this->assertEquals("3.141593", $result);
|
||||||
|
|
||||||
$result = $this->db->value(3.14);
|
$result = $this->db->value(3.14);
|
||||||
$this->assertEquals("3.140000", $result);
|
$this->assertEquals("3.14", $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue