Author: ts
Date: Thu Nov 29 15:31:52 2007
New Revision: 6887

Log:
- Fixed issue #12126: ImageConversion test is incorrect.

Modified:
    trunk/ImageConversion/ChangeLog
    trunk/ImageConversion/tests/handler_test.php
    trunk/ImageConversion/tests/handlershell_test.php

Modified: trunk/ImageConversion/ChangeLog
==============================================================================
--- trunk/ImageConversion/ChangeLog [iso-8859-1] (original)
+++ trunk/ImageConversion/ChangeLog [iso-8859-1] Thu Nov 29 15:31:52 2007
@@ -1,3 +1,9 @@
+1.3.2 - [RELEASEDATE]
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #12126: ImageConversion test is incorrect.
+
+
 1.3.1 - Wednesday 28 November 2007
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 

Modified: trunk/ImageConversion/tests/handler_test.php
==============================================================================
--- trunk/ImageConversion/tests/handler_test.php [iso-8859-1] (original)
+++ trunk/ImageConversion/tests/handler_test.php [iso-8859-1] Thu Nov 29 
15:31:52 2007
@@ -119,28 +119,6 @@
         $this->fail( "ezcImageFileNameInvalidException not thrown on illigal 
character $." );
     }
 
-    public function testCloseSuccess()
-    {
-        $srcPath = $this->testFiles["jpeg"];
-        $ref = $this->handler->load( $srcPath );
-
-        $refProp = $this->getReferences();
-        $tmpFile = $refProp[$ref]["resource"];
-
-        $this->handler->close( $ref );
-
-        $refProp = $this->getReferences();
-
-        $this->assertFalse(
-            isset( $refProp[$ref] ),
-            "Reference not freed successfully."
-        );
-        $this->assertFalse(
-            file_exists( $tmpFile ),
-            "Temporary file not deleted successfully."
-        );
-    }
-
     public function testCloseFailure()
     {
         try

Modified: trunk/ImageConversion/tests/handlershell_test.php
==============================================================================
--- trunk/ImageConversion/tests/handlershell_test.php [iso-8859-1] (original)
+++ trunk/ImageConversion/tests/handlershell_test.php [iso-8859-1] Thu Nov 29 
15:31:52 2007
@@ -95,6 +95,28 @@
         }
         $this->fail( "Required exception not thrown on not existing file." );
     }
+
+    public function testCloseSuccess()
+    {
+        $srcPath = $this->testFiles["jpeg"];
+        $ref = $this->handler->load( $srcPath );
+
+        $refProp = $this->getReferences();
+        $tmpFile = $refProp[$ref]["resource"];
+
+        $this->handler->close( $ref );
+
+        $refProp = $this->getReferences();
+
+        $this->assertFalse(
+            isset( $refProp[$ref] ),
+            "Reference not freed successfully."
+        );
+        $this->assertFalse(
+            file_exists( $tmpFile ),
+            "Temporary file not deleted successfully."
+        );
+    }
     
     public function testRemoveTempFilesInDtorSuccess()
     {


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to