]> granicus.if.org Git - php/commitdiff
Fixed test
authorIlia Alshanetsky <iliaa@php.net>
Sat, 9 Dec 2006 16:41:24 +0000 (16:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 9 Dec 2006 16:41:24 +0000 (16:41 +0000)
ext/pdo/tests/bug_39656.phpt

index 8330331bdd2d84db6f777daa135bafe67af109ed..e1a283ce09572640e8b816a93c7ba203095855fe 100644 (file)
@@ -15,6 +15,7 @@ if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE_
 require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
 $db = PDOTest::factory();
 
+@$db->exec("DROP TABLE testtable");
 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
 $db->exec("CREATE TABLE testtable (id INTEGER NOT NULL PRIMARY KEY, usr VARCHAR( 256 ) NOT NULL)");
@@ -31,11 +32,9 @@ $stmt->closeCursor();
 $row = $stmt->fetch(); // this line will crash CLI
 var_dump( $row );
 
-$db->exec("DROP TABLE testtable");
-
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECT--     
 array(4) {
   ["id"]=>
   string(1) "1"