Пример #1
0
/**
 * Matches if value is a string that contains $substring regardless of the case.
 */
function containsStringIgnoringCase($substring)
{
    require_once 'Hamcrest/Text/StringContainsIgnoringCase.php';
    return Hamcrest_Text_StringContainsIgnoringCase::containsStringIgnoringCase($substring);
}
 public function setUp()
 {
     $this->_stringContains = Hamcrest_Text_StringContainsIgnoringCase::containsStringIgnoringCase(strtolower(self::EXCERPT));
 }