Author: kn
Date: Tue Jul  3 12:51:55 2007
New Revision: 5673

Log:
- Use PHPUnits XML diffing to compare SVG files
  # Only works with PHPUnit >= 3.1.2 or PHPUnit 3.1.1 including changesets 
  # #733 and #737

Modified:
    trunk/Graph/tests/test_case.php

Modified: trunk/Graph/tests/test_case.php
==============================================================================
--- trunk/Graph/tests/test_case.php [iso-8859-1] (original)
+++ trunk/Graph/tests/test_case.php [iso-8859-1] Tue Jul  3 12:51:55 2007
@@ -59,22 +59,10 @@
      */
     protected function compare( $generated, $compare )
     {
-        $this->assertTrue(
-            file_exists( $generated ),
-            'No image file has been created.'
+        $this->assertXmlFileEqualsXmlFile(
+            $generated,
+            $compare
         );
-
-        $this->assertTrue(
-            file_exists( $compare ),
-            'Comparision image does not exist.'
-        );
-
-        if ( md5_file( $generated ) !== md5_file( $compare ) )
-        {
-            // Adding a diff makes no sense here, because created XML uses
-            // only two lines
-            $this->fail( 'Rendered image is not correct.');
-        }
     }
 }
 


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to