mageekguy\atoum\asserters\object::check PHP Method

check() protected method

protected check ( $value, $method )
    protected function check($value, $method)
    {
        if ($this->analyzer->isObject($value) === false) {
            throw new exceptions\logic('Argument of ' . __CLASS__ . '::' . $method . '() must be a class instance');
        }
        return $this;
    }