Ejemplo n.º 1
0
 public function testRealizeRequestBodyIfMethodIsNotAbstract()
 {
     $this->method->setAbstract(false);
     $this->funcRealizerMock->expects($this->any())->method('realize')->with($this->anything(), true);
     $this->methodRealizer->realize($this->method);
 }
Ejemplo n.º 2
0
 /**
  * Returns the variable to inject in the template
  *
  * @param Method $method
  * @return array
  */
 private function getTmplVars(Method $method)
 {
     return array('modifiers' => $this->getModifiersString($method), 'function' => $this->funcRealizer->realize($method, !$method->isAbstract()));
 }