mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[feature/auto-loading] Add test case for phpbb_dir2 =>
includes/dir2/dir2.php PHPBB3-9682
This commit is contained in:
parent
e4ff780c13
commit
9edf0d64a2
2 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
|
|
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
|
||||
{
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue