Author: as
Date: Wed Dec  5 13:39:39 2007
New Revision: 6939

Log:
- Separated classes into their own files.
# Done in order to be able to run the tests independently.

Added:
    trunk/EventLog/tests/writers/temp_implementation.php   (with props)
    trunk/EventLog/tests/writers/temp_implementation2.php   (with props)
Modified:
    trunk/EventLog/tests/writers/writer_file_test.php

Added: trunk/EventLog/tests/writers/temp_implementation.php
==============================================================================
--- trunk/EventLog/tests/writers/temp_implementation.php (added)
+++ trunk/EventLog/tests/writers/temp_implementation.php [iso-8859-1] Wed Dec  
5 13:39:39 2007
@@ -1,0 +1,30 @@
+<?php
+/**
+ * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ * @version //autogentag//
+ * @filesource
+ * @package EventLog
+ * @subpackage Tests
+ */
+
+/**
+ * Test file for ezcLogFileWriterTest.
+ *
+ * @package EventLog
+ * @subpackage Tests
+ */
+class TempImplementation extends ezcLogFileWriter
+{
+    public function __construct($dir, $file = null, $maxSize = 204800, 
$maxFiles = 3 )
+    {
+        parent::__construct($dir, $file, $maxSize, $maxFiles);
+    }
+
+    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 );
+    }
+}
+?>

Propchange: trunk/EventLog/tests/writers/temp_implementation.php
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/EventLog/tests/writers/temp_implementation2.php
==============================================================================
--- trunk/EventLog/tests/writers/temp_implementation2.php (added)
+++ trunk/EventLog/tests/writers/temp_implementation2.php [iso-8859-1] Wed Dec  
5 13:39:39 2007
@@ -1,0 +1,35 @@
+<?php
+/**
+ * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ * @version //autogentag//
+ * @filesource
+ * @package EventLog
+ * @subpackage Tests
+ */
+
+/**
+ * Test file for ezcLogFileWriterTest.
+ *
+ * @package EventLog
+ * @subpackage Tests
+ */
+class TempImplementation2 extends ezcLogFileWriter
+{
+    public function __construct($dir, $file = null, $maxSize = 1, $maxFiles = 
1 )
+    {
+        parent::__construct($dir, $file, $maxSize, $maxFiles);
+        // close the open files in order to see if an exception is thrown
+        foreach ( $this->openFiles as $fh )
+        {
+            fclose( $fh );
+        }
+    }
+
+    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 );
+    }
+}
+?>

Propchange: trunk/EventLog/tests/writers/temp_implementation2.php
------------------------------------------------------------------------------
    svn:eol-style = native

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 Dec  5 
13:39:39 2007
@@ -8,6 +8,9 @@
  * @subpackage Tests
  */
 
+require_once 'temp_implementation.php';
+require_once 'temp_implementation2.php';
+
 /**
  * @package EventLog
  * @subpackage Tests
@@ -223,39 +226,4 @@
          return new PHPUnit_Framework_TestSuite("ezcLogFileWriterTest");
     }
 }
-
-
-class TempImplementation extends ezcLogFileWriter
-{
-    public function __construct($dir, $file = null, $maxSize = 204800, 
$maxFiles = 3 )
-    {
-        parent::__construct($dir, $file, $maxSize, $maxFiles);
-    }
-
-    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 );
-    }
-}
-
-class TempImplementation2 extends ezcLogFileWriter
-{
-    public function __construct($dir, $file = null, $maxSize = 1, $maxFiles = 
1 )
-    {
-        parent::__construct($dir, $file, $maxSize, $maxFiles);
-        // close the open files in order to see if an exception is thrown
-        foreach ( $this->openFiles as $fh )
-        {
-            fclose( $fh );
-        }
-    }
-
-    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 );
-    }
-}
-
 ?>


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

Reply via email to