<?phpuseMockeryasm;useMaatwebsite\Excel\Readers\LaravelExcelReader;useMaatwebsite\Excel\Classes;classReaderTestextendsTestCase{/** * Setup */publicfunctionsetUp(){parent::setUp();// Set excel class$this->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] */publicfunctiontestExcelInjection(){$this->assertEquals($this->excel,$this->reader->getExcel());}}