Author: Tobias Schlitt
Date: 2007-03-15 11:28:58 +0100 (Thu, 15 Mar 2007)
New Revision: 4757

Log:
- Migrated statusbar tests to use new directory structure.

Modified:
   trunk/ConsoleTools/tests/statusbar_test.php

Modified: trunk/ConsoleTools/tests/statusbar_test.php
===================================================================
--- trunk/ConsoleTools/tests/statusbar_test.php 2007-03-15 10:27:06 UTC (rev 
4756)
+++ trunk/ConsoleTools/tests/statusbar_test.php 2007-03-15 10:28:58 UTC (rev 
4757)
@@ -62,12 +62,12 @@
         $res = ob_get_contents();
         ob_end_clean();
         $this->assertEquals(
-            file_get_contents( dirname( __FILE__ ) . 
'/data/testStatusbar1.dat' ),
+            file_get_contents( dirname( __FILE__ ) . '/data/' . ( 
ezcBaseFeatures::os() === "Windows" ? "windows/" : "posix/" ) . 
'testStatusbar1.dat' ),
             $res,
             "Formated statusbar not generated correctly."
         );
         // To prepare test files use this:
-        // file_put_contents( dirname( __FILE__ ) . 
'/data/testStatusbar1.dat', $res );
+        // file_put_contents( dirname( __FILE__ ) . '/data/' . ( 
ezcBaseFeatures::os() === "Windows" ? "windows/" : "posix/" ) . 
'testStatusbar1.dat', $res );
     }
     
     public function testStatusbar2()
@@ -83,12 +83,12 @@
         $res = ob_get_contents();
         ob_end_clean();
         $this->assertEquals(
-            file_get_contents( dirname( __FILE__ ) . 
'/data/testStatusbar2.dat' ),
+            file_get_contents( dirname( __FILE__ ) . '/data/' . ( 
ezcBaseFeatures::os() === "Windows" ? "windows/" : "posix/" ) . 
'testStatusbar2.dat' ),
             $res,
             "Unformated statusbar not generated correctly."
         );
         // To prepare test files use this:
-        // file_put_contents( dirname( __FILE__ ) . 
'/data/testStatusbar2.dat', $res );
+        // file_put_contents( dirname( __FILE__ ) . '/data/' . ( 
ezcBaseFeatures::os() === "Windows" ? "windows/" : "posix/" ) . 
'testStatusbar2.dat', $res );
     }
 }
 ?>

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

Reply via email to