Ejemplo n.º 1
0
 /**
  * @covers Rrs\Ryzom\VisualSlotTab
  */
 public function testLoad()
 {
     $buffer = file_get_contents(__DIR__ . '/_files/visual_slot.tab');
     $vs = new VisualSlotManager();
     $vs->load($buffer);
     $this->assertFalse($vs->findByIndex(0, EVisualSlot::ARMS_SLOT));
     $this->assertFalse($vs->findBySheetId(0, EVisualSlot::ARMS_SLOT));
     $sheetid = $vs->findByIndex(1, EVisualSlot::ARMS_SLOT);
     $this->assertEquals(5604910, $sheetid);
     $index = $vs->findBySheetId(5604910, EVisualSlot::ARMS_SLOT);
     $this->assertEquals(1, $index);
 }