Exemplo n.º 1
0
 public function getTitle()
 {
     if ($title = $this->getAttribute('title')) {
         return $title;
     }
     return parent::getTitle();
 }
Exemplo n.º 2
0
 /**
  * @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());
 }