summaryrefslogtreecommitdiff
path: root/tests/unit/Data/TDbCommandTest.php
diff options
context:
space:
mode:
authorxue <>2006-11-25 03:48:22 +0000
committerxue <>2006-11-25 03:48:22 +0000
commitb09acac59340fca37b5149cc0354093b7d7ab015 (patch)
tree069e4222565f94f5efd70fa8eff48f4eb42fb6dd /tests/unit/Data/TDbCommandTest.php
parentd877676a3b2432fccfc5ce97e42008f9ce20c94d (diff)
DB layer is completed.
Diffstat (limited to 'tests/unit/Data/TDbCommandTest.php')
-rw-r--r--tests/unit/Data/TDbCommandTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/Data/TDbCommandTest.php b/tests/unit/Data/TDbCommandTest.php
index 40d871e3..9023e6b6 100644
--- a/tests/unit/Data/TDbCommandTest.php
+++ b/tests/unit/Data/TDbCommandTest.php
@@ -112,7 +112,8 @@ class TDbCommandTest extends PHPUnit2_Framework_TestCase
// test unprepared SQL execution
$sql='INSERT INTO foo (name) VALUES (\'new name\')';
$command=$this->_connection->createCommand($sql);
- $command->execute();
+ $n=$command->execute();
+ $this->assertEquals($n,1);
$command->execute();
$count=$this->_connection->createCommand('SELECT COUNT(id) AS id_count FROM foo')->queryScalar();
$this->assertEquals('4',$count);