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

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

public substrExamples ( )
    public function substrExamples()
    {
        return ['positive start and length lower count' => ['Hello, World!', 7, 5, 'World'], 'start equal to count' => ['Foo', 3, 42, ''], 'start greater than count' => ['Foo', 42, 5, ''], 'start negative' => ['Hello, World!', -6, 5, 'World'], 'start negative larger than abs(count)' => ['Hello, World!', -42, 5, 'Hello'], 'start positive and length omitted' => ['Hello, World!', 7, null, 'World!'], 'start positive and length is 0' => ['Hello, World!', 7, 0, ''], 'start positive and length is negative' => ['Hello, World!', 7, -1, ''], 'unicode content is extracted' => ['Öaßaä', 2, 1, 'ß']];
    }