/** * @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()); }
/** * 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); }