[Fusionforge-commits] r8609 - trunk/tests/code/syntax

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Dec 21 19:15:48 CET 2009


Author: lolando
Date: 2009-12-21 19:15:48 +0100 (Mon, 21 Dec 2009)
New Revision: 8609

Modified:
   trunk/tests/code/syntax/SyntaxTests.php
Log:
Optimised syntax checks a tiny bit

Modified: trunk/tests/code/syntax/SyntaxTests.php
===================================================================
--- trunk/tests/code/syntax/SyntaxTests.php	2009-12-21 17:05:13 UTC (rev 8608)
+++ trunk/tests/code/syntax/SyntaxTests.php	2009-12-21 18:15:48 UTC (rev 8609)
@@ -27,13 +27,13 @@
     public function testUTF8Chars()
     {
 	    // Skip the wiki part which is not UTF-8 encoded.
-	    $output = `cd .. ; find gforge tests -name '*.php' -not -path 'gforge/plugins/wiki/www/*' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.php' -not -path 'gforge/plugins/wiki/www/*' -type f | xargs isutf8`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge tests -name '*.sql' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.sql' -type f | xargs isutf8`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge tests -name '*.sh' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.sh' -type f | xargs isutf8`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge tests -name '*.pl' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.pl' -type f | xargs isutf8`;
 	    $this->assertEquals('', $output);
     }
 




More information about the Fusionforge-commits mailing list