Example #1
0
 /**
  * @expectedException \Box\Spout\Writer\Exception\InvalidSheetNameException
  * @return void
  */
 public function testSetSheetNameShouldThrowWhenNameIsAlreadyUsed()
 {
     $customSheetName = 'Sheet name';
     $sheet = new Sheet(0);
     $sheet->setName($customSheetName);
     $sheet = new Sheet(1);
     $sheet->setName($customSheetName);
 }