diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-01-09 23:12:41 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-01-09 23:12:41 +0100 |
commit | 5373f8157d8a2619197702c3a00a6bb432ef3e25 (patch) | |
tree | 10e4af590c4225c4c0512d93c27b76a753f02908 /tests/class_loader/class_loader_test.php | |
parent | c1950004b443a611c082ab166450cc7b3267da91 (diff) | |
parent | eb6283ea3dc67adebf400054c86bf7875a178da8 (diff) | |
download | forums-5373f8157d8a2619197702c3a00a6bb432ef3e25.tar forums-5373f8157d8a2619197702c3a00a6bb432ef3e25.tar.gz forums-5373f8157d8a2619197702c3a00a6bb432ef3e25.tar.bz2 forums-5373f8157d8a2619197702c3a00a6bb432ef3e25.tar.xz forums-5373f8157d8a2619197702c3a00a6bb432ef3e25.zip |
Merge branch 'ticket/igorw/9979' into develop
* ticket/igorw/9979:
[ticket/9979] Support autoloading in unit tests
Diffstat (limited to 'tests/class_loader/class_loader_test.php')
-rw-r--r-- | tests/class_loader/class_loader_test.php | 12 |
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__ . '/'; |