mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[feature/auto-loading] Add test case for phpbb_dir2 =>
includes/dir2/dir2.php PHPBB3-9682
This commit is contained in:
@@ -44,6 +44,11 @@ class phpbb_class_loader_test extends PHPUnit_Framework_TestCase
|
|||||||
$class_loader->resolve_path('phpbb_dir_subdir_class_name'),
|
$class_loader->resolve_path('phpbb_dir_subdir_class_name'),
|
||||||
'Class in a sub-directory'
|
'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()
|
public function test_resolve_cached()
|
||||||
|
6
tests/class_loader/includes/dir2/dir2.php
Normal file
6
tests/class_loader/includes/dir2/dir2.php
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class phpbb_dir2
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user