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);
}
}
}