PhpDocumentor
[ class tree: PhpDocumentor ] [ index: PhpDocumentor ] [ all elements ]

Source for file AllTests.php

Documentation is available at AllTests.php

  1. <?php
  2. if (!defined('PHPUnit_MAIN_METHOD')) {
  3.     define('PHPUnit_MAIN_METHOD''AllTests::main');
  4. }
  5.  
  6. require_once 'PHPUnit/Framework.php';
  7. require_once 'PHPUnit/TextUI/TestRunner.php';
  8.  
  9. /**
  10.  * You must add each additional class-level test suite file here
  11.  */
  12. require_once 'Documentation/tests/phpDocumentorSetupTests.php';
  13. require_once 'Documentation/tests/phpDocumentorTParserTests.php';
  14. require_once 'Documentation/tests/IntermediateParserTests.php';
  15. require_once 'Documentation/tests/HighlightParserTests.php';
  16. require_once 'Documentation/tests/ParserClassTests.php';
  17. require_once 'Documentation/tests/ParserPageTests.php';
  18. /**
  19.  * Base directory of code being PhpDoc'd
  20.  * 
  21.  * Needed by some of the objects being tested in the suites
  22.  * @since 1.4.0a2
  23.  */
  24. define("PHPDOCUMENTOR_BASE"'.');
  25.  
  26. class AllTests
  27. {
  28.     public static function main()
  29.     {
  30.         PHPUnit_TextUI_TestRunner::run(self::suite());
  31.     }
  32.  
  33.     public static function suite()
  34.     {
  35.         $suite = new PHPUnit_Framework_TestSuite('PhpDocumentor Full Suite of Unit Tests');
  36.         /**
  37.          * You must add each additional class-level test suite name here
  38.          */
  39.         $suite->addTest(Documentation_tests_phpDocumentorSetupTests::suite());
  40.         $suite->addTest(Documentation_tests_phpDocumentorTParserTests::suite());
  41.         $suite->addTest(Documentation_tests_IntermediateParserTests::suite());
  42.         $suite->addTest(Documentation_tests_HighlightParserTests::suite());
  43.         $suite->addTest(Documentation_tests_ParserClassTests::suite());
  44.         $suite->addTest(Documentation_tests_ParserPageTests::suite());
  45.         return $suite;
  46.     }
  47. }
  48.  
  49. if (PHPUnit_MAIN_METHOD == 'AllTests::main'{
  50.     AllTests::main();
  51. }
  52. ?>

Documentation generated on Mon, 11 Mar 2019 15:05:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.