public function testGetLineAfterChildren() { $method = new PhpMethod('Foo'); $method->setHasBody(true); $line = $method->getLineAfterChildren(); $this->assertSame('', $line); }
/** * @param PhpMethodElement $method * @return PhpInterface */ public function addMethodElement(PhpMethodElement $method) { if ($method->getHasBody()) { $method->setHasBody(false); } return parent::addMethodElement($method); }