示例#1
0
 public function testSetAndGetVersion()
 {
     $this->assertEquals(null, $this->doc->getVersion());
     $this->doc->setVersion(Document::VERSION_MUST_NOT_EXIST);
     $this->assertEquals(Document::VERSION_MUST_NOT_EXIST, $this->doc->getVersion());
     $this->doc->setVersion(234);
     $this->assertEquals(234, $this->doc->getVersion());
 }