root/trunk/tests/unit/phpunit.php
| Revision 2468, 0.9 kB (checked in by tof, 5 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /** |
| 3 | * A few common settings for all unit tests. |
| 4 | * |
| 5 | * This file should be included in all unit tests with absolute path to be able to run it |
| 6 | * from the command line with "phpunit" like this: |
| 7 | * |
| 8 | * require_once dirname(__FILE__).'/path/../to/../phpunit.php'; |
| 9 | * |
| 10 | * Also remember do define the @package attribute for your test class to make it appear under |
| 11 | * the right package in unit test and code coverage reports. |
| 12 | */ |
| 13 | define('PRADO_FRAMEWORK_DIR', dirname(__FILE__).'/../../framework'); |
| 14 | set_include_path(PRADO_FRAMEWORK_DIR.PATH_SEPARATOR.get_include_path()); |
| 15 | |
| 16 | require_once dirname(__FILE__).'/Prado.php'; |
| 17 | require_once PRADO_FRAMEWORK_DIR.'/prado.php'; |
| 18 | require_once 'PHPUnit/Framework/TestCase.php'; |
| 19 | require_once 'PHPUnit/Framework/IncompleteTestError.php'; |
| 20 | require_once 'PHPUnit/Framework/TestSuite.php'; |
| 21 | require_once 'PHPUnit/TextUI/TestRunner.php'; |
| 22 | require_once 'PHPUnit/Util/Filter.php'; |
| 23 | ?> |
Note: See TracBrowser
for help on using the browser.
