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

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

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