aboutsummaryrefslogtreecommitdiffstats
path: root/tests/class_loader/class_loader_test.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-01-07 18:03:00 +0100
committerIgor Wiedler <igor@wiedler.ch>2011-01-07 22:17:50 +0100
commiteb6283ea3dc67adebf400054c86bf7875a178da8 (patch)
tree17678d493386910755d699440c27b68dfc63e671 /tests/class_loader/class_loader_test.php
parentdf9971d88316566f8720ac2fcc8f3e927c3527b8 (diff)
downloadforums-eb6283ea3dc67adebf400054c86bf7875a178da8.tar
forums-eb6283ea3dc67adebf400054c86bf7875a178da8.tar.gz
forums-eb6283ea3dc67adebf400054c86bf7875a178da8.tar.bz2
forums-eb6283ea3dc67adebf400054c86bf7875a178da8.tar.xz
forums-eb6283ea3dc67adebf400054c86bf7875a178da8.zip
[ticket/9979] Support autoloading in unit tests
PHPBB-9979
Diffstat (limited to 'tests/class_loader/class_loader_test.php')
-rw-r--r--tests/class_loader/class_loader_test.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/class_loader/class_loader_test.php b/tests/class_loader/class_loader_test.php
index aef4f1de07..3eb3c915a1 100644
--- a/tests/class_loader/class_loader_test.php
+++ b/tests/class_loader/class_loader_test.php
@@ -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__ . '/';