public function testSetLookup() { $xml = new \XMLWriter(); $xml->openMemory(); $xml->setIndent(true); $this->setExpectedException('InvalidArgumentException'); $inv = new Inventory($xml); $inv->setLookup('Foo'); }