ReaderTest.php 657 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use Mockery as m;
  3. use Maatwebsite\Excel\Readers\LaravelExcelReader;
  4. use Maatwebsite\Excel\Classes;
  5. class ReaderTest extends TestCase {
  6. /**
  7. * Setup
  8. */
  9. public function setUp()
  10. {
  11. parent::setUp();
  12. // Set excel class
  13. $this->excel = App::make('phpexcel');
  14. // Set writer class
  15. $this->reader = App::make('excel.reader');
  16. $this->reader->injectExcel($this->excel);
  17. }
  18. /**
  19. * Test the excel injection
  20. * @return [type] [description]
  21. */
  22. public function testExcelInjection()
  23. {
  24. $this->assertEquals($this->excel, $this->reader->getExcel());
  25. }
  26. }