cvs: pear /DB/tests/driver 15quote.phpt
| From: | Daniel Convissor | Date: | Mon, 07 Feb 2005 16:20:09 +0000 |
| Subject: | cvs: pear /DB/tests/driver 15quote.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29179@lists.php.net to get a copy of this message | ||
danielc Mon Feb 7 11:20:09 2005 EDT
Modified files:
/pear/DB/tests/driver 15quote.phpt
Log:
* Tweak test so it passes if failure is one we expect.
http://cvs.php.net/diff.php/pear/DB/tests/driver/15quote.phpt?r1=1.20&r2=1.21&ty=u
Index: pear/DB/tests/driver/15quote.phpt
diff -u pear/DB/tests/driver/15quote.phpt:1.20 pear/DB/tests/driver/15quote.phpt:1.21
--- pear/DB/tests/driver/15quote.phpt:1.20 Mon Nov 1 00:35:31 2004
+++ pear/DB/tests/driver/15quote.phpt Mon Feb 7 11:20:09 2005
@@ -120,13 +120,13 @@
$info = $dbh->tableInfo('pearquote');
if (DB::isError($info) ) {
if ($info->code == DB_ERROR_NOT_CAPABLE) {
- print "Creation of the delimited identifier worked.\n";
+ print "Got outcome expected from delimited identifier.\n";
} else {
print "tableInfo() failed.\n";
}
} else {
if ($identifier == $info[2]['name']) {
- print "Creation of the delimited identifier worked.\n";
+ print "Got outcome expected from delimited identifier.\n";
// print "COLUMN NAME IS: {$info[2]['name']}\n";
} else {
print "Expected column name: '$identifier' ... ";
@@ -143,7 +143,7 @@
b {$boolean_col_type[$dbh->phptype]} $null
)
");
- print "{$dbh->dsn['phptype']} does not handle delimited identifiers.\n";
+ print "Got outcome expected from delimited identifier.\n";
}
@@ -258,7 +258,7 @@
?>
--EXPECT--
-Creation of the delimited identifier worked.
+Got outcome expected from delimited identifier.
String escape test: OK
Number escape test: OK
Boolean escape test: OK