mageekguy\atoum\asserters\phpString::__get PHP Method

__get() public method

public __get ( $asserter )
    public function __get($asserter)
    {
        switch (strtolower($asserter)) {
            case 'length':
                return $this->getLengthAsserter();
            case 'isempty':
                return $this->isEmpty();
            case 'isnotempty':
                return $this->isNotEmpty();
            case 'toArray':
                return $this->toArray();
            default:
                return $this->generator->__get($asserter);
        }
    }

Usage Example

Example #1
0
 public function __get($asserter)
 {
     switch (strtolower($asserter)) {
         case 'issha1':
         case 'issha256':
         case 'issha512':
         case 'ismd5':
             return $this->{$asserter}();
         default:
             return parent::__get($asserter);
     }
 }