cvs: pear /MDB2/tests MDB2_usage_testcase.php
| From: | Justin Patrin | Date: | Sat, 19 Aug 2006 22:15:26 +0000 |
| Subject: | cvs: pear /MDB2/tests MDB2_usage_testcase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41717@lists.php.net to get a copy of this message | ||
justinpatrin Sat Aug 19 22:15:26 2006 UTC
Modified files:
/pear/MDB2/tests MDB2_usage_testcase.php
Log:
Remove incorrect test case for field case without portability
http://cvs.php.net/viewvc.cgi/pear/MDB2/tests/MDB2_usage_testcase.php?r1=1.76&r2=1.77&diff_format=u
Index: pear/MDB2/tests/MDB2_usage_testcase.php
diff -u pear/MDB2/tests/MDB2_usage_testcase.php:1.76 pear/MDB2/tests/MDB2_usage_testcase.php:1.77
--- pear/MDB2/tests/MDB2_usage_testcase.php:1.76 Sat Aug 19 22:13:30 2006
+++ pear/MDB2/tests/MDB2_usage_testcase.php Sat Aug 19 22:15:26 2006
@@ -41,7 +41,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2_usage_testcase.php,v 1.76 2006/08/19 22:13:30 justinpatrin Exp $
+// $Id: MDB2_usage_testcase.php,v 1.77 2006/08/19 22:15:26 justinpatrin Exp $
require_once 'MDB2_testcase.php';
@@ -1475,7 +1475,10 @@
$field = next($fields);
}
- // leave the case as-is
+ /*
+ This is not a valid test case. Turning off portability means that the underlying
+ extension will choose the case of the responses, not the query.
+ // leave the case as-is
$this->db->setOption('portability', MDB2_PORTABILITY_NONE);
$fields = array('User_Name', 'UseR_PassWord');
$query = 'SELECT '. implode(',', $fields).' FROM users';
@@ -1488,6 +1491,7 @@
$this->assertEquals($field, $fieldname, '"MDB2_PORTABILITY_FIX_CASE =
off" not working');
$field = next($fields);
}
+ */
// MDB2_PORTABILITY_RTRIM
$this->db->setOption('portability', MDB2_PORTABILITY_NONE |
MDB2_PORTABILITY_RTRIM);