Exemple #1
0
/**
 * 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);
}
Exemple #2
0
 protected function createMatcher()
 {
     return Hamcrest_Core_Is::is('something');
 }