File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
ini_set('display_errors', 'stderr');
3
3
set_include_path('{include_path}');
4
- require 'PHPUnit/Autoload.php' ;
4
+ require {autoload} ;
5
5
ob_start();
6
6
7
7
function __phpunit_run_isolated_test()
Original file line number Diff line number Diff line change @@ -735,6 +735,12 @@ public function run(PHPUnit_Framework_TestResult $result = NULL)
735
735
$ strict = 'FALSE ' ;
736
736
}
737
737
738
+ if (defined ('PHPUNIT_COMPOSER_INSTALL ' )) {
739
+ $ autoload = var_export (PHPUNIT_COMPOSER_INSTALL , TRUE );
740
+ } else {
741
+ $ autoload = '\'PHPUnit/Autoload.php \'' ;
742
+ }
743
+
738
744
$ data = var_export (serialize ($ this ->data ), TRUE );
739
745
$ dependencyInput = var_export (serialize ($ this ->dependencyInput ), TRUE );
740
746
$ includePath = var_export (get_include_path (), TRUE );
@@ -746,6 +752,7 @@ public function run(PHPUnit_Framework_TestResult $result = NULL)
746
752
747
753
$ template ->setVar (
748
754
array (
755
+ 'autoload ' => $ autoload ,
749
756
'filename ' => $ class ->getFileName (),
750
757
'className ' => $ class ->getName (),
751
758
'methodName ' => $ this ->name ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ foreach ($files as $file) {
46
46
if (file_exists ($ file )) {
47
47
require $ file ;
48
48
49
- define ('PHPUNIT_COMPOSER_INSTALL ' , TRUE );
49
+ define ('PHPUNIT_COMPOSER_INSTALL ' , $ file );
50
50
51
51
break ;
52
52
}
You can’t perform that action at this time.
0 commit comments