/** * Matches if value is a string that contains $substring. */ function containsString($substring) { require_once 'Hamcrest/Text/StringContains.php'; return Hamcrest_Text_StringContains::containsString($substring); }
public function setUp() { $this->_stringContains = Hamcrest_Text_StringContains::containsString(self::EXCERPT); }