function ZfExtensionManagerSfContainerTest::canonicalizeNameProvider

Same name in this branch
  1. 9 core/modules/aggregator/tests/src/Unit/ZfExtensionManagerSfContainerTest.php \Drupal\Tests\aggregator\Unit\ZfExtensionManagerSfContainerTest::canonicalizeNameProvider()
Same name in other branches
  1. 8.9.x 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 119

Class

ZfExtensionManagerSfContainerTest
@coversDefaultClass \Drupal\Component\Bridge\ZfExtensionManagerSfContainer @group Bridge @group legacy

Namespace

Drupal\Tests\Component\Bridge

Code

public function canonicalizeNameProvider() {
    return [
        [
            'foobar',
            'foobar',
        ],
        [
            'foo-bar',
            'foobar',
        ],
        [
            'foo_bar',
            'foobar',
        ],
        [
            'foo bar',
            'foobar',
        ],
        [
            'foo\\bar',
            'foobar',
        ],
        [
            'foo/bar',
            'foobar',
        ],
        // There is also a strtolower in canonicalizeName.
[
            'Foo/bAr',
            'foobar',
        ],
        [
            'foo/-_\\ bar',
            'foobar',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.