ok 1 => pass; ok 0 => fail and report the path in the test
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 5 Jun 2007 23:25:38 +0000 (23:25 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 5 Jun 2007 23:25:38 +0000 (23:25 +0000)
t/maint/php-lint.t

index e65d689..6687a08 100644 (file)
@@ -26,8 +26,8 @@ for my $file (@files) {
        waitpid $pid, 0;
 
        if ( $? == 0 ) {
-               ok 1 => "Looks fine";
+               pass($file);
        } else {
-               ok 0 => "$file does not pass php linter. Error was: $res";
+               fail("$file does not pass php -l. Error was: $res");
        }
 }