Helpdesk da PluGzOne, baseado no osTicket
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
573 B

<?php
require_once "class.test.php";
class SyntaxTest extends Test {
var $name = "PHP Syntax Checks";
static function ignore3rdparty() {
return false;
}
function testCompileErrors() {
$exit = 0;
foreach (static::getAllScripts() as $s) {
ob_start();
system("php -l $s", $exit);
$line = ob_get_contents();
ob_end_clean();
if ($exit != 0)
$this->fail($s, 0, $line);
else
$this->pass();
}
}
}
return 'SyntaxTest';
?>