Author: Tobias Schlitt
Date: 2007-03-13 17:19:02 +0100 (Tue, 13 Mar 2007)
New Revision: 4749

Log:
- Adjusted test suite according to new file locations.

Modified:
   trunk/ConsoleTools/tests/progressbar_test.php

Modified: trunk/ConsoleTools/tests/progressbar_test.php
===================================================================
--- trunk/ConsoleTools/tests/progressbar_test.php       2007-03-13 16:16:15 UTC 
(rev 4748)
+++ trunk/ConsoleTools/tests/progressbar_test.php       2007-03-13 16:19:02 UTC 
(rev 4749)
@@ -129,13 +129,15 @@
             }
             ob_end_clean();
         }
+
+        $refFile = dirname( __FILE__ ) . '/data/' . ( ezcBaseFeatures::os() 
=== "Windows" ? "windows/" : "posix/" ) . $refFile . '.dat';
         $this->assertEquals(
-            file_get_contents( dirname( __FILE__ ) . '/data/' . $refFile . 
'.dat' ),
-            implode( "\n", $res ),
+            file_get_contents( $refFile ),
+            implode( PHP_EOL, $res ),
             'Table not correctly generated for ' . $refFile . '.'
         );
         // Use the following line to regenerate test reference files
-        // file_put_contents( dirname( __FILE__ ) . '/data/' . $refFile . 
'.dat', implode( "\n", $res ) );
+        // file_put_contents( $refFile, implode( PHP_EOL, $res ) );
     }
 }
 ?>

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

Reply via email to