Exemple #1
0
 public function testMethodCannotBeFinalAndAbstractAtTheSameTime()
 {
     $this->method->setAbstract(true);
     $this->setExpectedException('BadMethodCallException');
     $this->method->setFinal(true);
     $this->method->setAbstract(false)->setFinal(true);
     $this->setExpectedException('BadMethodCallException');
     $this->method->setAbstract(true);
 }
 public function testRealizeRequestBodyIfMethodIsNotAbstract()
 {
     $this->method->setAbstract(false);
     $this->funcRealizerMock->expects($this->any())->method('realize')->with($this->anything(), true);
     $this->methodRealizer->realize($this->method);
 }