From 9edf0d64a2735eaff6dbd15487b008bf9ef9b686 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Tue, 31 Aug 2010 20:30:59 +0200 Subject: [feature/auto-loading] Add test case for phpbb_dir2 => includes/dir2/dir2.php PHPBB3-9682 --- tests/class_loader/class_loader_test.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/class_loader/class_loader_test.php') diff --git a/tests/class_loader/class_loader_test.php b/tests/class_loader/class_loader_test.php index e53507ded3..ecfac8080d 100644 --- a/tests/class_loader/class_loader_test.php +++ b/tests/class_loader/class_loader_test.php @@ -44,6 +44,11 @@ class phpbb_class_loader_test extends PHPUnit_Framework_TestCase $class_loader->resolve_path('phpbb_dir_subdir_class_name'), 'Class in a sub-directory' ); + $this->assertEquals( + $prefix . 'dir2/dir2.php', + $class_loader->resolve_path('phpbb_dir2'), + 'Class with name of dir within dir (short class name)' + ); } public function test_resolve_cached() -- cgit v1.2.1