示例#1
0
 public function __construct($value)
 {
     parent::__construct($value);
     $this->_value = $value;
 }
示例#2
0
/**
 * Creates a new instance of IsSame.
 * 
 * @param mixed $object
 *   The predicate evaluates to true only when the argument is
 *   this object.
 */
function sameInstance($object)
{
    require_once 'Hamcrest/Core/IsSame.php';
    return Hamcrest_Core_IsSame::sameInstance($object);
}
示例#3
0
 protected function createMatcher()
 {
     return Hamcrest_Core_IsSame::sameInstance(new stdClass());
 }