<?php if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'ParserPageTests::main'); } require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; /* You must add each method-level test suite file here */ require_once 'Documentation/tests/ParserPageGetSourceLocationTests.php'; class Documentation_tests_ParserPageTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('ParserPage Unit Test Suites'); /* You must add each method-level test suite name here */ $suite->addTestSuite('Documentation_tests_ParserPageGetSourceLocationTests'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'ParserPageTests::main') { Documentation_tests_ParserPageTests::main(); }
/** * Adds all class test suites into the master suite * * @return PHPUnit_Framework_TestSuite a master test suite * containing all class test suites * @uses PHPUnit_Framework_TestSuite */ public static function suite() { $suite = new PHPUnit_Framework_TestSuite('PhpDocumentor Full Suite of Unit Tests'); /* * You must add each additional class-level test suite name here */ $suite->addTest(Documentation_tests_phpDocumentorSetupTests::suite()); $suite->addTest(Documentation_tests_phpDocumentorTParserTests::suite()); $suite->addTest(Documentation_tests_IntermediateParserTests::suite()); $suite->addTest(Documentation_tests_HighlightParserTests::suite()); $suite->addTest(Documentation_tests_ParserClassTests::suite()); $suite->addTest(Documentation_tests_ParserPageTests::suite()); return $suite; }