cvs: pear /MDB_QueryTool/tests GetCount.php
| From: | Lorenzo Alberton | Date: | Fri, 19 Mar 2004 01:08:50 +0000 |
| Subject: | cvs: pear /MDB_QueryTool/tests GetCount.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17530@lists.php.net to get a copy of this message | ||
quipo Thu Mar 18 20:08:50 2004 EDT
Modified files:
/pear/MDB_QueryTool/tests GetCount.php
Log:
switch quote nesting or it won't work on postgres
http://cvs.php.net/diff.php/pear/MDB_QueryTool/tests/GetCount.php?r1=1.1&r2=1.2&ty=u
Index: pear/MDB_QueryTool/tests/GetCount.php
diff -u pear/MDB_QueryTool/tests/GetCount.php:1.1 pear/MDB_QueryTool/tests/GetCount.php:1.2
--- pear/MDB_QueryTool/tests/GetCount.php:1.1 Mon Jun 9 15:48:19 2003
+++ pear/MDB_QueryTool/tests/GetCount.php Thu Mar 18 20:08:50 2004
@@ -1,6 +1,6 @@
<?php
//
-// $Id: GetCount.php,v 1.1 2003/06/09 19:48:19 quipo Exp $
+// $Id: GetCount.php,v 1.2 2004/03/19 01:08:50 quipo Exp $
//
class tests_GetCount extends tests_UnitTest
@@ -43,7 +43,7 @@
function test_getCountGrouped2()
{
$this->_setup(6);
- $this->user->setWhere('name="z"');
+ $this->user->setWhere("name='z'");
$this->assertEquals(2,$this->user->getCount(),'setWhere and setGroup should
have resulted in two');
}
@@ -51,7 +51,7 @@
{
$this->_setup(6);
$this->user->setGroup('name');
- $this->user->setWhere('name="z"');
+ $this->user->setWhere("name='z'");
$this->assertEquals(1,$this->user->getCount(),'setWhere and setGroup should
have resulted in one');
}
@@ -59,7 +59,7 @@
{
$this->_setup(6);
$this->user->setGroup('name');
- $this->user->setWhere('name="xxx"');
+ $this->user->setWhere("name='xxx'");
$this->assertEquals(0,$this->user->getCount(),'setWhere and setGroup should
have resulted in one');
}