Neos\Eel\Tests\Unit\StringHelperTest::substringExamples PHP Метод

substringExamples() публичный Метод

public substringExamples ( )
    public function substringExamples()
    {
        return ['start equals end' => ['Hello, World!', 7, 7, ''], 'end omitted' => ['Hello, World!', 7, null, 'World!'], 'negative start' => ['Hello, World!', -7, null, 'Hello, World!'], 'negative end' => ['Hello, World!', 5, -5, 'Hello'], 'start greater than end' => ['Hello, World!', 5, 0, 'Hello'], 'start greater than count' => ['Hello, World!', 15, 0, 'Hello, World!'], 'end greater than count' => ['Hello, World!', 7, 15, 'World!'], 'unicode content is extracted' => ['Öaßaä', 2, 3, 'ß']];
    }