mageekguy\atoum\asserters\adapter\call::__get PHP Method

__get() public method

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

Usage Example

Beispiel #1
0
 public function __get($property)
 {
     switch (strtolower($property)) {
         case 'withanyarguments':
         case 'withoutanyargument':
             return $this->{$property}();
         default:
             return parent::__get($property);
     }
 }