<?php require_once "class.test.php"; class SyntaxTest extends Test { var $name = "PHP Syntax Checks"; function testCompileErrors() { $exit = 0; foreach ($this->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'; ?>