aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-09-10 17:45:43 +0200
committerNils Adermann <naderman@naderman.de>2013-09-16 00:41:49 +0200
commitbb395bbc50df53bf2e005d95d45f34c7c8934ff0 (patch)
treef6411c36ccb4f8846aa4ec315fc14ce85869751f
parentbdaf68c113162a98a2e471183a39297e1a965ad3 (diff)
downloadforums-bb395bbc50df53bf2e005d95d45f34c7c8934ff0.tar
forums-bb395bbc50df53bf2e005d95d45f34c7c8934ff0.tar.gz
forums-bb395bbc50df53bf2e005d95d45f34c7c8934ff0.tar.bz2
forums-bb395bbc50df53bf2e005d95d45f34c7c8934ff0.tar.xz
forums-bb395bbc50df53bf2e005d95d45f34c7c8934ff0.zip
[ticket/11700] Update finder tests for namespaced classnames
PHPBB3-11700
-rw-r--r--tests/extension/finder_test.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/extension/finder_test.php b/tests/extension/finder_test.php
index 2bb44c0f57..f1e7bc02b9 100644
--- a/tests/extension/finder_test.php
+++ b/tests/extension/finder_test.php
@@ -43,10 +43,10 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_default_implementation',
- 'phpbb_ext_bar_my_hidden_class',
- 'phpbb_ext_foo_a_class',
- 'phpbb_ext_foo_b_class',
+ 'phpbb\default\implementation',
+ 'phpbb\ext\bar\my\hidden_class',
+ 'phpbb\ext\foo\a_class',
+ 'phpbb\ext\foo\b_class',
),
$classes
);
@@ -88,8 +88,8 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_default_implementation',
- 'phpbb_ext_bar_my_hidden_class',
+ 'phpbb\default\implementation',
+ 'phpbb\ext\bar\my\hidden_class',
),
$classes
);
@@ -105,9 +105,9 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_default_implementation',
- 'phpbb_ext_foo_sub_type_alternative',
- 'phpbb_ext_foo_type_alternative',
+ 'phpbb\default\implementation',
+ 'phpbb\ext\foo\sub\type\alternative',
+ 'phpbb\ext\foo\type\alternative',
),
$classes
);
@@ -122,7 +122,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_ext_foo_type_alternative',
+ 'phpbb\ext\foo\type\alternative',
),
$classes
);
@@ -137,7 +137,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_ext_foo_sub_type_alternative',
+ 'phpbb\ext\foo\sub\type\alternative',
),
$classes
);
@@ -152,7 +152,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_ext_foo_sub_type_alternative',
+ 'phpbb\ext\foo\sub\type\alternative',
),
$classes
);
@@ -168,8 +168,8 @@ class phpbb_extension_finder_test extends phpbb_test_case
sort($classes);
$this->assertEquals(
array(
- 'phpbb_ext_foo_type_alternative',
- 'phpbb_ext_foo_type_dummy_empty',
+ 'phpbb\ext\foo\type\alternative',
+ 'phpbb\ext\foo\type\dummy\empty',
),
$classes
);