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:
@@ -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/';
|
||||
|
Reference in New Issue
Block a user