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