From 91305a43af126bc404b9fa42572eb8b23009a209 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Mon, 26 May 2014 18:30:04 +0200 Subject: [ticket/12589] Add test searching in a non absolute directory PHPBB3-12589 --- tests/extension/finder_test.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') 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 -- cgit v1.2.1