aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-26 18:30:04 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-26 18:30:04 +0200
commit91305a43af126bc404b9fa42572eb8b23009a209 (patch)
tree2845978e094bb336c96189af10eb35e12efd5046 /tests/extension
parent930c5d85edc773bd21db85f9f811f55d727885e4 (diff)
downloadforums-91305a43af126bc404b9fa42572eb8b23009a209.tar
forums-91305a43af126bc404b9fa42572eb8b23009a209.tar.gz
forums-91305a43af126bc404b9fa42572eb8b23009a209.tar.bz2
forums-91305a43af126bc404b9fa42572eb8b23009a209.tar.xz
forums-91305a43af126bc404b9fa42572eb8b23009a209.zip
[ticket/12589] Add test searching in a non absolute directory
PHPBB3-12589
Diffstat (limited to 'tests/extension')
-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 d0ca5956b4..0c01feb1a6 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -128,6 +128,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