예제 #1
0
 public function testObjectNumberAllocation()
 {
     $this->assertSame(1, $this->objectWriter->allocateObjectId());
     $this->assertSame(2, $this->objectWriter->allocateObjectId());
     $this->assertSame(3, $this->objectWriter->allocateObjectId());
 }
예제 #2
0
 /**
  * @param ObjectWriter $objectWriter
  */
 public function __construct(ObjectWriter $objectWriter)
 {
     $this->objectWriter = $objectWriter;
     $this->pageId = $this->objectWriter->allocateObjectId();
 }