PhpOffice\PhpPresentation\Tests\Shape\CommentTest::testGetSetAuthor PHP Method

testGetSetAuthor() public method

public testGetSetAuthor ( )
    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());
    }