File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function __construct($testTypes = []) {
74
74
* @return string Test Class Name
75
75
*/
76
76
public function getTestClassName ($ testType ) {
77
- return " mar \\tests \\" .$ testType ;
77
+ return __NAMESPACE__ . " \\tests \\" .$ testType ;
78
78
}
79
79
80
80
/**
Original file line number Diff line number Diff line change @@ -156,12 +156,10 @@ private function run() {
156
156
* @return void
157
157
*/
158
158
static public function autoloader ($ className ) {
159
- $ className = str_replace ('mar \\' , '' , $ className );
159
+ $ className = str_replace ('alexia \\ mar \\' , '' , $ className );
160
160
$ file = PHP7MAR_DIR .DIRECTORY_SEPARATOR .'classes ' .DIRECTORY_SEPARATOR .str_replace ('\\' , DIRECTORY_SEPARATOR , $ className ).'.php ' ;
161
161
if (is_file ($ file )) {
162
162
require_once ($ file );
163
- } else {
164
- throw new \Exception (__CLASS__ .": Class file for {$ className } not found at {$ file }. " );
165
163
}
166
164
}
167
165
@@ -184,5 +182,5 @@ static public function getRealPath($path) {
184
182
return false ;
185
183
}
186
184
}
187
- $ mar = new \ mar \ main ();
185
+ $ mar = new main ();
188
186
?>
You can’t perform that action at this time.
0 commit comments