/** * @expectedException Google\Spreadsheet\Exception\WorksheetNotFoundException */ public function testGetByIdException() { $worksheetFeed = new WorksheetFeed($this->getSimpleXMLElement("worksheet-feed")); $this->assertTrue(is_null($worksheetFeed->getById("od7"))); }