From 19af8e71006960646727860f6ab0408eec9b5c86 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Thu, 24 Dec 2009 16:28:06 -0500 Subject: [PATCH] Before typecasting, we expect mysql native booleans to come back as 0/1 --- framework/Db/test/Horde/Db/Adapter/MysqliTest.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Db/test/Horde/Db/Adapter/MysqliTest.php b/framework/Db/test/Horde/Db/Adapter/MysqliTest.php index 58360ce29..6bae108d1 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqliTest.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqliTest.php @@ -375,7 +375,7 @@ class Horde_Db_Adapter_MysqliTest extends PHPUnit_Framework_TestCase // Test for 30 significent digits (beyond the 16 of float), 10 of them // after the decimal place. $this->assertEquals('12345678901234567890.0123456789', $bob->wealth); - $this->assertEquals(true, $bob->male); + $this->assertEquals(1, $bob->male); // @todo - type casting } diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php index 0abb99106..ce5b27999 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php @@ -397,7 +397,7 @@ class Horde_Db_Adapter_Pdo_MysqlTest extends PHPUnit_Framework_TestCase // Test for 30 significent digits (beyond the 16 of float), 10 of them // after the decimal place. $this->assertEquals('12345678901234567890.0123456789', $bob->wealth); - $this->assertEquals(true, $bob->male); + $this->assertEquals(1, $bob->male); // @todo - type casting } -- 2.11.0