diff options
author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-01-31 13:54:55 +0100 |
---|---|---|
committer | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-01-31 14:02:30 +0100 |
commit | 2e5421230968170477b7fbadd58c01b26ade0590 (patch) | |
tree | 9fb11cc9cd70ec6becc51391a160de4057e42a49 /tests/class_loader/class_loader_test.php | |
parent | d06657c99573e3975e735e8cb7f8cc5ccb510851 (diff) | |
download | forums-2e5421230968170477b7fbadd58c01b26ade0590.tar forums-2e5421230968170477b7fbadd58c01b26ade0590.tar.gz forums-2e5421230968170477b7fbadd58c01b26ade0590.tar.bz2 forums-2e5421230968170477b7fbadd58c01b26ade0590.tar.xz forums-2e5421230968170477b7fbadd58c01b26ade0590.zip |
[ticket/10011] Tests can't be ran on PHP < 5.3
Apply the `__DIR__` fix to some remaining Ascraeus tests
PHPBB3-10011
Diffstat (limited to 'tests/class_loader/class_loader_test.php')
-rw-r--r-- | tests/class_loader/class_loader_test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/class_loader/class_loader_test.php b/tests/class_loader/class_loader_test.php index cc6862dc70..0c7fe3f97a 100644 --- a/tests/class_loader/class_loader_test.php +++ b/tests/class_loader/class_loader_test.php @@ -7,7 +7,7 @@ * */ -require_once __DIR__ . '/../mock/cache.php'; +require_once dirname(__FILE__) . '/../mock/cache.php'; class phpbb_class_loader_test extends PHPUnit_Framework_TestCase { @@ -25,7 +25,7 @@ class phpbb_class_loader_test extends PHPUnit_Framework_TestCase public function test_resolve_path() { - $prefix = __DIR__ . '/'; + $prefix = dirname(__FILE__) . '/'; $class_loader = new phpbb_class_loader($prefix); $prefix .= 'includes/'; @@ -63,7 +63,7 @@ class phpbb_class_loader_test extends PHPUnit_Framework_TestCase $cacheMap = array('class_loader' => array('phpbb_a_cached_name' => 'a/cached_name')); $cache = new phpbb_mock_cache($cacheMap); - $prefix = __DIR__ . '/'; + $prefix = dirname(__FILE__) . '/'; $class_loader = new phpbb_class_loader($prefix, '.php', $cache); $prefix .= 'includes/'; |