diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-31 01:35:23 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-31 01:35:23 +0200 |
commit | 93c310f66b42e2090f3abeaa814aaa487ed8f16a (patch) | |
tree | 735c200d8128519cf5b5dd8182625f8d096b8b3b /tests | |
parent | dafa254f1e836b6aa59ccdc8312382c1d344ca47 (diff) | |
parent | 9c2687ddc9ba7071f7c98c118203f96a412e3d1b (diff) | |
download | forums-93c310f66b42e2090f3abeaa814aaa487ed8f16a.tar forums-93c310f66b42e2090f3abeaa814aaa487ed8f16a.tar.gz forums-93c310f66b42e2090f3abeaa814aaa487ed8f16a.tar.bz2 forums-93c310f66b42e2090f3abeaa814aaa487ed8f16a.tar.xz forums-93c310f66b42e2090f3abeaa814aaa487ed8f16a.zip |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[ticket/12589] Add test searching in a non absolute directory
[ticket/12589] Fix tests
[ticket/12589] Search directly in $directory if it's an absolute sub-path
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extension/finder_test.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php index 4ef9411557..8cc5146b33 100644 --- a/tests/extension/finder_test.php +++ b/tests/extension/finder_test.php @@ -132,6 +132,22 @@ class phpbb_extension_finder_test extends phpbb_test_case ); } + public function test_non_absolute_directory_get_classes() + { + $classes = $this->finder + ->directory('type/') + ->get_classes(); + + sort($classes); + $this->assertEquals( + array( + '\vendor2\foo\sub\type\alternative', + '\vendor2\foo\type\alternative', + ), + $classes + ); + } + public function test_sub_directory_get_classes() { $classes = $this->finder |