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

stringIsFoundAtEndingOfAnotherString() public method

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