Ejemplo n.º 1
0
 /**
  * @covers Phpy\Func\Func::setBody
  * @covers Phpy\Func\Func::getBody
  */
 public function testSetAndGetBody()
 {
     $body = 'asdasd xxx ; xasd';
     $this->func->setBody($body);
     $this->assertEquals($body, $this->func->getBody());
 }
Ejemplo n.º 2
0
 /**
  * Returns the function body enclosed by brackets
  * @param Func $function
  * @return string
  */
 private function getRealizedBody(Func $function)
 {
     return $this->realizeVars(array('body' => $function->getBody()), $this->bodyTemplate);
 }