public function testReadInvalidFileFormat() { $reader = new \Magento\Update\Queue\Reader($this->invalidQueueFilePath); $this->setExpectedException('\\RuntimeException', "Content of \"{$this->invalidQueueFilePath}\" must be a valid JSON."); $reader->read(); }