aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension/finder_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-31 01:35:10 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-31 01:35:10 +0200
commit9c2687ddc9ba7071f7c98c118203f96a412e3d1b (patch)
treeeb5914ab23e704d17fde617841fedb7616ab1bdc /tests/extension/finder_test.php
parentf4dcb69dae9964c7d6ca9d06828d773a63a3abed (diff)
parent91305a43af126bc404b9fa42572eb8b23009a209 (diff)
downloadforums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar
forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar.gz
forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar.bz2
forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.tar.xz
forums-9c2687ddc9ba7071f7c98c118203f96a412e3d1b.zip
Merge pull request #2494 from Nicofuma/ticket/12589
[ticket/12589] Search directly in $directory if it's an absolute sub-path * Nicofuma/ticket/12589: [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/extension/finder_test.php')
-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