Move up to date the parser test expectation.
[lhc/web/wiklou.git] / maintenance / checkSyntax.php
index a28f055..02b5a69 100644 (file)
@@ -50,7 +50,7 @@ class CheckSyntax extends Maintenance {
                $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' );
 
                $str = 'Checking syntax (using ' . ( $useParseKit ?
-                       'parsekit)' : ' php -l, this can take a long time)' );
+                       'parsekit' : ' php -l, this can take a long time' ) . ")\n";
                $this->output( $str );
                foreach ( $this->mFiles as $f ) {
                        if ( $useParseKit ) {
@@ -121,7 +121,7 @@ class CheckSyntax extends Maintenance {
 
                        preg_match_all( '/^\s*[AM].{7}(.*?)\r?$/m', $output, $matches );
                        foreach ( $matches[1] as $file ) {
-                               if ( self::isSuitableFile( $file ) && !is_dir( $file ) ) {
+                               if ( $this->isSuitableFile( $file ) && !is_dir( $file ) ) {
                                        $this->mFiles[] = $file;
                                }
                        }