public function ZfExtensionManagerSfContainerTest::canonicalizeNameProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Bridge/ZfExtensionManagerSfContainerTest.php \Drupal\Tests\Component\Bridge\ZfExtensionManagerSfContainerTest::canonicalizeNameProvider()
Data provider for testReverseProxyEnabled.
Replacements: array('-' => '', '_' => '', ' ' => '', '\\' => '', '/' => '')
File
- core/
tests/ Drupal/ Tests/ Component/ Bridge/ ZfExtensionManagerSfContainerTest.php, line 87 - Contains \Drupal\Tests\Component\Bridge\ZfExtensionManagerSfContainerTest.
Class
- ZfExtensionManagerSfContainerTest
- @coversDefaultClass \Drupal\Component\Bridge\ZfExtensionManagerSfContainer @group Bridge
Namespace
Drupal\Tests\Component\BridgeCode
public function canonicalizeNameProvider() {
return array(
array(
'foobar',
'foobar',
),
array(
'foo-bar',
'foobar',
),
array(
'foo_bar',
'foobar',
),
array(
'foo bar',
'foobar',
),
array(
'foo\\bar',
'foobar',
),
array(
'foo/bar',
'foobar',
),
// There is also a strtolower in canonicalizeName.
array(
'Foo/bAr',
'foobar',
),
array(
'foo/-_\\ bar',
'foobar',
),
);
}