Neos\Flow\Tests\Unit\I18n\UtilityTest::stringIsFoundAtBeginningOfAnotherString PHP Method

stringIsFoundAtBeginningOfAnotherString() public method

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);
    }