aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-31 01:35:23 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-31 01:35:23 +0200
commit93c310f66b42e2090f3abeaa814aaa487ed8f16a (patch)
tree735c200d8128519cf5b5dd8182625f8d096b8b3b /tests
parentdafa254f1e836b6aa59ccdc8312382c1d344ca47 (diff)
parent9c2687ddc9ba7071f7c98c118203f96a412e3d1b (diff)
downloadforums-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.php16
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