summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2013-06-02 13:38:43 +0200
committerMatteo Beccati <mbeccati@php.net>2013-06-02 13:38:43 +0200
commit2463e8979470a8e61b17c28ae8f8f1dad63f856f (patch)
treeac68282fd9c44ca239452193e24eca01634cfe3e
parent25aae37229a439109c020150d0f496ef4a237ecd (diff)
downloadphp-git-2463e8979470a8e61b17c28ae8f8f1dad63f856f.tar.gz
Clean up leftover test files
-rw-r--r--ext/pdo_pgsql/tests/copy_from.phpt8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/pdo_pgsql/tests/copy_from.phpt b/ext/pdo_pgsql/tests/copy_from.phpt
index 2858905d0c..10967b0fe9 100644
--- a/ext/pdo_pgsql/tests/copy_from.phpt
+++ b/ext/pdo_pgsql/tests/copy_from.phpt
@@ -110,8 +110,10 @@ $db->rollback();
echo "Exception! at line ", $e->getLine(), "\n";
var_dump($e->getMessage());
}
-if(isset($filename)) {
- @unlink($filename);
+
+// Clean up
+foreach (array($filename, $filenameWithDifferentNullValues, $filenameWithDifferentNullValuesAndSelectedFields) as $f) {
+ @unlink($f);
}
?>
--EXPECT--
@@ -383,4 +385,4 @@ array(6) {
NULL
}
Testing pgsqlCopyFromFile() with error
-bool(false) \ No newline at end of file
+bool(false)