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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Mar 18 23:03:15 CET 2009


Author: aljeux
Date: 2009-03-18 23:03:15 +0100 (Wed, 18 Mar 2009)
New Revision: 7190

Modified:
   trunk/tests/code/syntax/SyntaxTests.php
Log:
Add utf8 encoding tests for *.php files

Modified: trunk/tests/code/syntax/SyntaxTests.php
===================================================================
--- trunk/tests/code/syntax/SyntaxTests.php	2009-03-18 21:45:31 UTC (rev 7189)
+++ trunk/tests/code/syntax/SyntaxTests.php	2009-03-18 22:03:15 UTC (rev 7190)
@@ -3,14 +3,12 @@
 require_once 'PHPUnit/Framework/TestCase.php';
 
 /**
- * Simple math test class.
+ * Syntax test class.
  *
- * @package   Example
- * @author    Manuel Pichler <mapi at phpundercontrol.org>
- * @copyright 2007-2008 Manuel Pichler. All rights reserved.
- * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version   Release: 0.4.7
- * @link      http://www.phpundercontrol.org/
+ * @package   SyntaxTests
+ * @author    Alain Peyrat <aljeux at free.fr>
+ * @copyright 2009 Alain Peyrat. All rights reserved.
+ * @license   http://www.opensource.org/licenses/gpl-license.php  GPL License
  */
 class Syntax_Tests extends PHPUnit_Framework_TestCase
 {
@@ -22,4 +20,13 @@
 	$output = `find ../gforge -name '*.php' -type f  -exec php -l {} \; | grep -v '^No syntax errors detected'`;
 	$this->assertEquals('', $output);
     }
+
+    /**
+     * Validate all php code with isutf8.
+     */
+    public function testUTF8Chars()
+    {
+	$output = `find ../gforge -name '*.php' -type f  -exec isutf8 {} \;`;
+	$this->assertEquals('', $output);
+    }
 }




More information about the Fusionforge-commits mailing list