com php-src: Clean up leftover test files: ext/pdo_pgsql/test s/copy_from.phpt
| From: | Matteo Beccati | Date: | Sun, 02 Jun 2013 11:38:43 +0000 |
| Subject: | com php-src: Clean up leftover test files: ext/pdo_pgsql/test s/copy_from.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72278@lists.php.net to get a copy of this message | ||
Commit: 2463e8979470a8e61b17c28ae8f8f1dad63f856f
Author: Matteo Beccati <mbeccati@php.net> Sun, 2 Jun 2013 13:38:43 +0200
Parents: 25aae37229a439109c020150d0f496ef4a237ecd
Branches: PHP-5.3 PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2463e8979470a8e61b17c28ae8f8f1dad63f856f
Log:
Clean up leftover test files
Changed paths:
M ext/pdo_pgsql/tests/copy_from.phpt
Diff:
diff --git a/ext/pdo_pgsql/tests/copy_from.phpt b/ext/pdo_pgsql/tests/copy_from.phpt
index 2858905..10967b0 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)