mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11415] Add test for find_from_extension()
PHPBB3-11415
This commit is contained in:
parent
f91f8666fd
commit
20815ed5a2
1 changed files with 17 additions and 0 deletions
|
@ -158,6 +158,23 @@ class phpbb_extension_finder_test extends phpbb_test_case
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_find_from_extension()
|
||||||
|
{
|
||||||
|
$files = $this->finder
|
||||||
|
->extension_directory('/type')
|
||||||
|
->find_from_extension('foo', dirname(__FILE__) . '/ext/foo/');
|
||||||
|
$classes = $this->finder->get_classes_from_files($files);
|
||||||
|
|
||||||
|
sort($classes);
|
||||||
|
$this->assertEquals(
|
||||||
|
array(
|
||||||
|
'phpbb_ext_foo_type_alternative',
|
||||||
|
'phpbb_ext_foo_type_dummy_empty',
|
||||||
|
),
|
||||||
|
$classes
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These do not work because of changes with PHPBB3-11386
|
* These do not work because of changes with PHPBB3-11386
|
||||||
* They do not seem neccessary to me, so I am commenting them out for now
|
* They do not seem neccessary to me, so I am commenting them out for now
|
||||||
|
|
Loading…
Add table
Reference in a new issue