コード例 #1
0
ファイル: Hamcrest.php プロジェクト: zhangjingli35/hamcrest
/**
 * 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);
}
コード例 #2
0
ファイル: IsTest.php プロジェクト: zhangjingli35/hamcrest
 protected function createMatcher()
 {
     return Hamcrest_Core_Is::is('something');
 }