1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge branch 'feature/naderman/auto-loading' into develop

* feature/naderman/auto-loading:
  [feature/auto-loading] Only check subdir if there is another name part.
This commit is contained in:
Andreas Fischer
2010-08-20 22:05:05 +02:00
3 changed files with 13 additions and 1 deletions

View File

@@ -23,6 +23,12 @@ class phpbb_class_loader_test extends PHPUnit_Framework_TestCase
$prefix .= 'includes/';
$this->assertEquals(
'',
$class_loader->resolve_path('phpbb_dir'),
'Class with same name as a directory is unloadable'
);
$this->assertEquals(
$prefix . 'class_name.php',
$class_loader->resolve_path('phpbb_class_name'),

View File

@@ -0,0 +1,6 @@
<?php
class phpbb_dir
{
}