PHPSpec2\Prophet\ObjectProphet::should PHP Method

should() public method

public should ( $name = null, array $arguments = [] )
$arguments array
    public function should($name = null, array $arguments = array())
    {
        if (null === $name) {
            return new Looper(array($this, __METHOD__));
        }
        $subject = $this->unwrapper->unwrapOne($this);
        $arguments = $this->unwrapper->unwrapAll($arguments);
        $matcher = $this->matchers->find($name, $subject, $arguments);
        return $matcher->positiveMatch($name, $subject, $arguments);
    }