Before typecasting, we expect mysql native booleans to come back as 0/1
authorChuck Hagenbuch <chuck@horde.org>
Thu, 24 Dec 2009 21:28:06 +0000 (16:28 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 24 Dec 2009 21:28:06 +0000 (16:28 -0500)
framework/Db/test/Horde/Db/Adapter/MysqliTest.php
framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php

index 58360ce..6bae108 100644 (file)
@@ -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
     }
index 0abb991..ce5b279 100644 (file)
@@ -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
     }