File tree Expand file tree Collapse file tree 6 files changed +11
-36
lines changed Expand file tree Collapse file tree 6 files changed +11
-36
lines changed Original file line number Diff line number Diff line change 88 * file that was distributed with this source code.
99 */
1010
11- if (!defined ('TEST_FILES_PATH ' )) {
12- define (
13- 'TEST_FILES_PATH ' ,
14- dirname (dirname (dirname (__FILE__ ))) . DIRECTORY_SEPARATOR .
15- '_files ' . DIRECTORY_SEPARATOR
16- );
17- }
11+ require_once dirname (dirname (dirname (__FILE__ ))) . DIRECTORY_SEPARATOR . 'TestCase.php ' ;
1812
1913/**
2014 * Tests for the PHP_CodeCoverage_Filter class.
Original file line number Diff line number Diff line change 88 * file that was distributed with this source code.
99 */
1010
11- if (!defined ('TEST_FILES_PATH ' )) {
12- define (
13- 'TEST_FILES_PATH ' ,
14- dirname (dirname (dirname (__FILE__ ))) . DIRECTORY_SEPARATOR .
15- '_files ' . DIRECTORY_SEPARATOR
16- );
17- }
18-
19- require_once TEST_FILES_PATH . '../TestCase.php ' ;
11+ require_once dirname (dirname (dirname (dirname (__FILE__ )))) . DIRECTORY_SEPARATOR . 'TestCase.php ' ;
2012
2113/**
2214 * Tests for the PHP_CodeCoverage_Report_Clover class.
Original file line number Diff line number Diff line change 88 * file that was distributed with this source code.
99 */
1010
11- if (!defined ('TEST_FILES_PATH ' )) {
12- define (
13- 'TEST_FILES_PATH ' ,
14- dirname (dirname (dirname (dirname (__FILE__ )))) . DIRECTORY_SEPARATOR .
15- '_files ' . DIRECTORY_SEPARATOR
16- );
17- }
18-
19- require_once TEST_FILES_PATH . '../TestCase.php ' ;
11+ require_once dirname (dirname (dirname (dirname (__FILE__ )))) . DIRECTORY_SEPARATOR . 'TestCase.php ' ;
2012
2113/**
2214 * Tests for the PHP_CodeCoverage_Report_Factory class.
Original file line number Diff line number Diff line change 88 * file that was distributed with this source code.
99 */
1010
11+ require_once dirname (dirname (dirname (__FILE__ ))) . DIRECTORY_SEPARATOR . 'TestCase.php ' ;
12+
1113/**
1214 * Tests for the PHP_CodeCoverage_Util class.
1315 *
Original file line number Diff line number Diff line change 88 * file that was distributed with this source code.
99 */
1010
11- if (!defined ('TEST_FILES_PATH ' )) {
12- define (
13- 'TEST_FILES_PATH ' ,
14- dirname (dirname (__FILE__ )) . DIRECTORY_SEPARATOR .
15- '_files ' . DIRECTORY_SEPARATOR
16- );
17- }
18-
19- require_once TEST_FILES_PATH . '../TestCase.php ' ;
20- require_once TEST_FILES_PATH . 'BankAccount.php ' ;
21- require_once TEST_FILES_PATH . 'BankAccountTest.php ' ;
11+ require_once dirname (dirname (__FILE__ )) . DIRECTORY_SEPARATOR . 'TestCase.php ' ;
2212
2313/**
2414 * Tests for the PHP_CodeCoverage class.
Original file line number Diff line number Diff line change 88 * file that was distributed with this source code.
99 */
1010
11+ if (!defined ('TEST_FILES_PATH ' )) {
12+ define ('TEST_FILES_PATH ' , dirname (__FILE__ ) . DIRECTORY_SEPARATOR . '_files ' . DIRECTORY_SEPARATOR );
13+ }
14+
1115/**
1216 * Abstract base class for test case classes.
1317 *
@@ -70,6 +74,7 @@ protected function getXdebugDataForBankAccount()
7074 protected function getCoverageForBankAccount ()
7175 {
7276 $ data = $ this ->getXdebugDataForBankAccount ();
77+ require_once TEST_FILES_PATH . 'BankAccountTest.php ' ;
7378
7479 $ stub = $ this ->getMock ('PHP_CodeCoverage_Driver_Xdebug ' );
7580 $ stub ->expects ($ this ->any ())
You can’t perform that action at this time.
0 commit comments