public function __get($asserter) { switch (strtolower($asserter)) { case 'isloaded': return $this->{$asserter}(); default: return parent::__get($asserter); } }
public function __get($property) { switch ($property) { case 'checkPredictions': return $this->checkPredictions(); default: return parent::__get($property); } }
public function __get($property) { switch (strtolower($property)) { case 'isabstract': case 'isfinal': case 'hasnoparent': return $this->{$property}(); default: return parent::__get($property); } }
public function __get($asserter) { switch (strtolower($asserter)) { case 'exists': case 'notexists': case 'withanytype': case 'withanymessage': return $this->{$asserter}(); default: return parent::__get($asserter); } }
public function __get($property) { switch (strtolower($property)) { case 'isnull': case 'isnotnull': case 'isnotfalse': case 'isnottrue': case 'iscallable': case 'isnotcallable': return $this->{$property}(); default: return parent::__get($property); } }
public function __get($property) { if (is_numeric($property) === true) { return $this->exactly($property); } else { switch (strtolower($property)) { case 'once': case 'twice': case 'thrice': case 'never': case 'atleastonce': case 'wascalled': case 'wasnotcalled': return $this->{$property}(); default: return parent::__get($property); } } }
public function __get($property) { switch (strtolower($property)) { case 'should': case 'return': case 'shouldreturn': case 'throw': case 'shouldthrow': case 'throwexception': case 'shouldthrowexception': return $this->__call($property, array()); case 'returns': case 'throws': return call_user_func_array(array($this, $property), array()); default: try { return $this->__call($property, array($this->actualValue)); } catch (\exception $e) { return parent::__get($property); } } }