Neos\Flow\Tests\Unit\I18n\UtilityTest::stringIsFoundAtBeginningOfAnotherString PHP 메소드

stringIsFoundAtBeginningOfAnotherString() 공개 메소드

public stringIsFoundAtBeginningOfAnotherString ( $haystack, $needle, $comparison )
    public function stringIsFoundAtBeginningOfAnotherString($haystack, $needle, $comparison)
    {
        $expectedResult = $comparison === 'beginning' || $comparison === 'both' ? true : false;
        $result = I18n\Utility::stringBeginsWith($haystack, $needle);
        $this->assertEquals($expectedResult, $result);
    }