/** * 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; }
<?php if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'HighlightParserTests::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/HighlightParserGetInlineTagsTests.php'; class Documentation_tests_HighlightParserTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('HighlightParser Unit Test Suites'); /* You must add each method-level test suite name here */ $suite->addTestSuite('Documentation_tests_HighlightParserGetInlineTagsTests'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'HighlightParserTests::main') { Documentation_tests_HighlightParserTests::main(); }