1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/10011] Tests can't be ran on PHP < 5.3

Apply the `__DIR__` fix to some remaining Ascraeus tests

PHPBB3-10011
This commit is contained in:
Erik Frèrejean
2011-01-31 13:54:55 +01:00
parent d06657c995
commit 2e54212309
8 changed files with 16 additions and 16 deletions

View File

@@ -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/';