public setAuthor ( |
||
$author | ||
return |
public function setAuthor(Author $author)
{
$this->author = $author;
return $this;
}
public function testGetSetAuthor() { $object = new Comment(); $oStub = $this->getMock('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author'); $this->assertNull($object->getAuthor()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setAuthor($oStub)); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author', $object->getAuthor()); }