public function testOpenLegalFileShouldReturnSheetWithRootTopic() { $package = new Package(__DIR__ . '/../res/cr.xmind'); $rootTopic = $package->getSheet(0)->getRootTopic(); $this->assertInstanceOf('Chub\\XMindPHP\\RootTopic', $rootTopic); $this->assertInstanceOf('Chub\\XMindPHP\\Topic', $rootTopic); }
protected function setUp() { $package = new Package(__DIR__ . '/../res/cr.xmind'); $this->rootTopic = $package->getSheet(0)->getRootTopic(); $this->assertInstanceOf('Chub\\XMindPHP\\RootTopic', $this->rootTopic); }