示例#1
0
 public function testSetAndGetFieldModifier()
 {
     $this->doc->setFieldModifier('name', Document::MODIFIER_ADD);
     $this->assertEquals(Document::MODIFIER_ADD, $this->doc->getFieldModifier('name'));
     $this->assertEquals(null, $this->doc->getFieldModifier('non-existing-field'));
 }