예제 #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());
 }