Author: dr
Date: Wed Feb  6 10:15:28 2008
New Revision: 7299

Log:
- Re-enable this test.

Modified:
    trunk/EventLog/tests/writers/temp_implementation2.php
    trunk/EventLog/tests/writers/writer_file_test.php

Modified: trunk/EventLog/tests/writers/temp_implementation2.php
==============================================================================
--- trunk/EventLog/tests/writers/temp_implementation2.php [iso-8859-1] 
(original)
+++ trunk/EventLog/tests/writers/temp_implementation2.php [iso-8859-1] Wed Feb  
6 10:15:28 2008
@@ -29,7 +29,11 @@
     public function writeLogMessage( $message, $type, $source, $category, 
$extraInfo = array() )
     {
         $res = print_r( array( "message" => $message, "type" => $type, 
"source" => $source, "category" => $category ), true );
-        $this->write( $type, $source, $category, $res );
+        @$this->write( $type, $source, $category, $res );
+    }
+
+    public function __destruct()
+    {
     }
 }
 ?>

Modified: trunk/EventLog/tests/writers/writer_file_test.php
==============================================================================
--- trunk/EventLog/tests/writers/writer_file_test.php [iso-8859-1] (original)
+++ trunk/EventLog/tests/writers/writer_file_test.php [iso-8859-1] Wed Feb  6 
10:15:28 2008
@@ -33,7 +33,6 @@
         $this->removeTempDir();
     }
     
-/*
     // This test was used to check for bug #9603, and it is commented out 
because
     // the code throws warnings for fwrite() and fclose()
     public function testWriteNotDefault()
@@ -48,9 +47,9 @@
         }
         catch ( ezcLogWriterException $e )
         {
-        }
-    }
-*/
+            self::assertSame( "An error occurred while writing to 
'broken.log'.", $e->getMessage() );
+        }
+    }
 
     // Check if can be written to the temporary file.
     public function testSelf()


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

Reply via email to