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