Skip to content

Commit 4d034b1

Browse files
committed
Improve tests for bug 67436
I always use a.php or b.php for local testing, this diff makes the test more stable
1 parent 9bf95d8 commit 4d034b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/tests/bug67436/bug67436.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error_reporting=
99

1010
spl_autoload_register(function($classname) {
1111
if (in_array($classname, array('a','b','c'))) {
12-
require_once ($classname . '.php');
12+
require_once __DIR__ . "/{$classname}.php";
1313
}
1414
});
1515

Zend/tests/bug67436/bug67436_nohandler.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error_reporting=-1
99

1010
spl_autoload_register(function($classname) {
1111
if (in_array($classname, array('a','b','c'))) {
12-
require_once ($classname . '.php');
12+
require_once __DIR__ . "/{$classname}.php";
1313
}
1414
});
1515

0 commit comments

Comments
 (0)