<?php

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'ParserClassTests::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
/* You must add each method-level test suite file here */
require_once 'ParserClassGetSourceLocationTests.php';
class tests_ParserClassTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('ParserClass Unit Test Suites');
        /* You must add each method-level test suite name here */
        $suite->addTestSuite('tests_ParserClassGetSourceLocationTests');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'ParserClassTests::main') {
    tests_ParserClassTests::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;
 }