scanner/tests/AllTests.php

22 lines
468 B
PHP

<?php
require_once('PHPUnit/Framework.php');
require_once('PHPUnit/TextUI/TestRunner.php');
require_once('ParserTests.php');
require_once('ScannerTests.php');
class AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('Code Scanner');
$suite->addTestSuite('ParserTests');
$suite->addTestSuite('ScannerTests');
return $suite;
}
}
?>