Esempio n. 1
0
 public function test_setting_title_through_the_callback()
 {
     $workbook = new Workbook('Workbook');
     $sheet = new Sheet($workbook, 'Sheet title', function ($sheet) {
         $sheet->setTitle('From closure');
     });
     $this->assertEquals('From closure', $sheet->getTitle());
 }