mageekguy\atoum\test::__get PHP Метод

__get() публичный Метод

public __get ( $property )
    public function __get($property)
    {
        return $this->assertionManager->__get($property);
    }

Usage Example

Пример #1
0
 public function __get($property)
 {
     if (preg_match('/^invoking(.+)$/', $property, $matches) > 0) {
         $arguments = func_get_args();
         $arguments[0] = $matches[1];
         return call_user_func_array(array($this, 'invoking'), $arguments);
     }
     if ($property === 'testedInstance') {
         try {
             return parent::__get($property);
         } catch (atoum\exceptions\runtime $e) {
             return $this->newTestedInstance;
         }
     }
     return parent::__get($property);
 }
test