excel = App::make('phpexcel'); // Set writer class $this->reader = App::make('excel.reader'); $this->reader->injectExcel($this->excel); } /** * Test the excel injection * @return [type] [description] */ public function testExcelInjection() { $this->assertEquals($this->excel, $this->reader->getExcel()); } }