1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/9979] Support autoloading in unit tests

PHPBB-9979
This commit is contained in:
Igor Wiedler
2011-01-07 18:03:00 +01:00
parent 7129531bc0
commit 36e95f939d
7 changed files with 16 additions and 16 deletions

View File

@@ -14,6 +14,18 @@ require_once __DIR__ . '/../../phpBB/includes/class_loader.php';
class phpbb_class_loader_test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
global $class_loader;
$class_loader->unregister();
}
public function tearDown()
{
global $class_loader;
$class_loader->register();
}
public function test_resolve_path()
{
$prefix = __DIR__ . '/';