/** * Decorates another Matcher, retaining the behavior but allowing tests * to be slightly more expressive. * * For example: assertThat($cheese, equalTo($smelly)) * vs. assertThat($cheese, is(equalTo($smelly))) */ function is($value) { require_once 'Hamcrest/Core/Is.php'; return Hamcrest_Core_Is::is($value); }
protected function createMatcher() { return Hamcrest_Core_Is::is('something'); }