getTitle() публичный Метод

Returns the title (name) of the spreadsheet
public getTitle ( ) : string
Результат string
 public function testGetTitle()
 {
     $spreadsheet = new Spreadsheet($this->getSimpleXMLElement("spreadsheet"));
     $this->assertEquals("Test Spreadsheet", $spreadsheet->getTitle());
 }
 public function testGetTitle()
 {
     $xml = file_get_contents(__DIR__ . '/xml/spreadsheet.xml');
     $spreadsheet = new Spreadsheet(new SimpleXMLElement($xml));
     $this->assertEquals('Test Spreadsheet', $spreadsheet->getTitle());
 }