PhpOffice\PhpPresentation\Tests\PresentationPropertiesTest::testCommentVisible PHP Метод

testCommentVisible() публичный Метод

public testCommentVisible ( )
    public function testCommentVisible()
    {
        $object = new PresentationProperties();
        $this->assertFalse($object->isCommentVisible());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setCommentVisible('AAAA'));
        $this->assertFalse($object->isCommentVisible());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setCommentVisible(true));
        $this->assertTrue($object->isCommentVisible());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setCommentVisible(false));
        $this->assertFalse($object->isCommentVisible());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setCommentVisible());
        $this->assertFalse($object->isCommentVisible());
    }