setEvenAndOddHeaders(true); $this->assertEquals(true, $oSettings->hasEvenAndOddHeaders()); } /** * HideGrammaticalErrors */ public function testHideGrammaticalErrors() { $oSettings = new Settings(); $oSettings->setHideGrammaticalErrors(true); $this->assertEquals(true, $oSettings->hasHideGrammaticalErrors()); } /** * HideSpellingErrors */ public function testHideSpellingErrors() { $oSettings = new Settings(); $oSettings->setHideSpellingErrors(true); $this->assertEquals(true, $oSettings->hasHideSpellingErrors()); } /** * DocumentProtection */ public function testDocumentProtection() { $oSettings = new Settings(); $oSettings->setDocumentProtection(new Protection()); $this->assertNotNull($oSettings->getDocumentProtection()); $oSettings->getDocumentProtection()->setEditing('trackedChanges'); $this->assertEquals('trackedChanges', $oSettings->getDocumentProtection()->getEditing()); } }