getByTitle() public method

Get a worksheet by title (name)
public getByTitle ( string $title ) : Worksheet
$title string name of the worksheet
return Worksheet
 public function testGetByTitle()
 {
     $xml = file_get_contents(__DIR__ . '/xml/worksheet-feed.xml');
     $worksheetFeed = new WorksheetFeed($xml);
     $this->assertTrue($worksheetFeed->getByTitle('Sheet1') instanceof Worksheet);
     $this->assertTrue(is_null($worksheetFeed->getByTitle('Sheet3')));
 }
 /**
  * @expectedException Google\Spreadsheet\Exception\WorksheetNotFoundException
  */
 public function testGetByTitleException()
 {
     $worksheetFeed = new WorksheetFeed($this->getSimpleXMLElement("worksheet-feed"));
     $this->assertNull($worksheetFeed->getByTitle("Sheet3"));
 }