[evolvis-commits] r14123: Optimised syntax checks a tiny bit

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 03:51:48 CET 2011


Author: mirabilos
Date: 2011-02-28 03:51:48 +0100 (Mon, 28 Feb 2011)
New Revision: 14123

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

Modified: trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php	2011-02-28 02:51:42 UTC (rev 14122)
+++ trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php	2011-02-28 02:51:48 UTC (rev 14123)
@@ -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 evolvis-commits mailing list