Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public function testRealizeRequestBodyIfMethodIsNotAbstract()
 {
     $this->method->setAbstract(false);
     $this->funcRealizerMock->expects($this->any())->method('realize')->with($this->anything(), true);
     $this->methodRealizer->realize($this->method);
 }