root/trunk/tests/unit/phpunit.php

Revision 2468, 0.9 kB (checked in by tof, 5 months ago)

Fixed #872

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 */
13define('PRADO_FRAMEWORK_DIR', dirname(__FILE__).'/../../framework');
14set_include_path(PRADO_FRAMEWORK_DIR.PATH_SEPARATOR.get_include_path());
15
16require_once dirname(__FILE__).'/Prado.php';
17require_once PRADO_FRAMEWORK_DIR.'/prado.php';
18require_once 'PHPUnit/Framework/TestCase.php';
19require_once 'PHPUnit/Framework/IncompleteTestError.php';
20require_once 'PHPUnit/Framework/TestSuite.php';
21require_once 'PHPUnit/TextUI/TestRunner.php';
22require_once 'PHPUnit/Util/Filter.php';
23?>
Note: See TracBrowser for help on using the browser.