diff options
author | Chad Parry <github@chad.parry.org> | 2011-04-30 16:40:55 -0600 |
---|---|---|
committer | Chad Parry <github@chad.parry.org> | 2011-04-30 17:45:44 -0600 |
commit | 0e844766baf3b3875cbb2d84579626e05e879420 (patch) | |
tree | 9be9474531aa5220243b07f2d33bb5dcd4ced5d6 /modules/gallery/tests/System_Helper_Test.php | |
parent | 5c9a3b3f39f6ff0d5c84c2cf283d27eaebe2e66e (diff) |
Change the signature of system::tempnam to something more appropriate for Gallery.
Diffstat (limited to 'modules/gallery/tests/System_Helper_Test.php')
-rw-r--r-- | modules/gallery/tests/System_Helper_Test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/tests/System_Helper_Test.php b/modules/gallery/tests/System_Helper_Test.php index 734f98ac..dfe5d9ab 100644 --- a/modules/gallery/tests/System_Helper_Test.php +++ b/modules/gallery/tests/System_Helper_Test.php @@ -18,10 +18,11 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class System_Helper_Test extends Gallery_Unit_Test_Case { - public function tempnam_random_test() { - $filename = system::tempnam(TMPPATH, "file", ".ext"); + public function temp_filename_random_test() { + $filename = system::temp_filename("file", "ext"); $this->assert_true(file_exists($filename), "File not created"); unlink($filename); + $this->assert_pattern($filename, "|/file.*\\.ext$|"); } public function tempnam_collision_test() { |