예제 #1
0
 public function test_setting_title_through_the_callback()
 {
     $workbook = new Workbook('Workbook title', function ($workbook) {
         $workbook->setTitle('From closure');
     });
     $this->assertEquals('From closure', $workbook->getTitle());
 }