Пример #1
0
<?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 'HighlightParserGetInlineTagsTests.php';
class 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('tests_HighlightParserGetInlineTagsTests');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'HighlightParserTests::main') {
    tests_HighlightParserTests::main();
}
Пример #2
0
 /**
  * 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(tests_phpDocumentorSetupTests::suite());
     $suite->addTest(tests_phpDocumentorTParserTests::suite());
     $suite->addTest(tests_IntermediateParserTests::suite());
     $suite->addTest(tests_HighlightParserTests::suite());
     $suite->addTest(tests_ParserClassTests::suite());
     $suite->addTest(tests_ParserPageTests::suite());
     return $suite;
 }