summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Photo_Helper_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-18 15:31:59 -0500
committerBharat Mediratta <bharat@menalto.com>2013-02-18 15:31:59 -0500
commit3e3ed1c819f1a9aaf67e509b331adc7665500a54 (patch)
tree1d20bdfe6feeec12360d41664e38ecb9d7f9189d /modules/gallery/tests/Photo_Helper_Test.php
parentf12aaf3c345fcce39fdbe721c896c03e3b429e58 (diff)
Fix up some tests:
- unlink copied files because they confused File_Structure_Test - update golden files
Diffstat (limited to 'modules/gallery/tests/Photo_Helper_Test.php')
-rw-r--r--modules/gallery/tests/Photo_Helper_Test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/tests/Photo_Helper_Test.php b/modules/gallery/tests/Photo_Helper_Test.php
index 79b5ccfd..7ba8324f 100644
--- a/modules/gallery/tests/Photo_Helper_Test.php
+++ b/modules/gallery/tests/Photo_Helper_Test.php
@@ -37,6 +37,7 @@ class Photo_Helper_Test extends Gallery_Unit_Test_Case {
copy(MODPATH . "gallery/tests/test.jpg", TMPPATH . "test_jpg_with_no_extension");
$this->assert_equal(array(1024, 768, "image/jpeg", "jpg"),
photo::get_file_metadata(TMPPATH . "test_jpg_with_no_extension"));
+ unlink(TMPPATH . "test_jpg_with_no_extension");
}
public function get_file_metadata_with_illegal_extension_test() {
@@ -56,6 +57,7 @@ class Photo_Helper_Test extends Gallery_Unit_Test_Case {
copy(MODPATH . "gallery/tests/test.jpg", TMPPATH . "test_jpg_with_php_extension.php");
$this->assert_equal(array(1024, 768, "image/jpeg", "jpg"),
photo::get_file_metadata(TMPPATH . "test_jpg_with_php_extension.php"));
+ unlink(TMPPATH . "test_jpg_with_php_extension.php");
}
public function get_file_metadata_with_valid_extension_but_illegal_file_contents_test() {
@@ -66,5 +68,6 @@ class Photo_Helper_Test extends Gallery_Unit_Test_Case {
} catch (Exception $e) {
// pass
}
+ unlink(TMPPATH . "test_php_with_jpg_extension.jpg");
}
}