public function getTitle() { if ($title = $this->getAttribute('title')) { return $title; } return parent::getTitle(); }
/** * @covers Geissler\Converter\Model\Entry::setTitle * @covers Geissler\Converter\Model\Entry::getTitle */ public function testTitle() { $data = 'test data'; $this->assertInstanceOf($this->class, $this->object->setTitle($data)); $this->assertEquals($data, $this->object->getTitle()); }