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 16:40:55 -0600 |
| commit | 2375a02e2cdbd1ccaf7dc4d3db9d85119972e3a9 (patch) | |
| tree | 8d6282cacc02af244fa1a6d371ff748f227c4a2b /modules/gallery/tests/System_Helper_Test.php | |
| parent | a8ca9dcf9edd54633c0c78b3af76aa974d38fc64 (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() { |
