Nelmio\Alice\Definition\MethodCall\NoMethodCall::getMethod PHP Метод

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

public getMethod ( ) : string
Результат string
    public function getMethod() : string
    {
        $this->throwException(__METHOD__);
    }

Usage Example

Пример #1
0
 /**
  * @expectedException \LogicException
  * @expectedExceptionMessage By its nature, "Nelmio\Alice\Definition\MethodCall\NoMethodCall::getMethod()" should not be called.
  */
 public function testCannotGetMethod()
 {
     $call = new NoMethodCall();
     $call->getMethod();
 }