TestCase.php 640 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use Orchestra\Testbench\TestCase as TestBenchTestCase;
  3. class TestCase extends TestBenchTestCase
  4. {
  5. public function testExcelClass()
  6. {
  7. $excel = App::make('Maatwebsite\Excel\Excel');
  8. $this->assertInstanceOf('Maatwebsite\Excel\Excel', $excel);
  9. }
  10. protected function getPackageProviders($app)
  11. {
  12. return array('Maatwebsite\Excel\ExcelServiceProvider');
  13. }
  14. protected function getPackagePath()
  15. {
  16. return realpath(implode(DIRECTORY_SEPARATOR, array(
  17. __DIR__,
  18. '..',
  19. 'src',
  20. 'Maatwebsite',
  21. 'Excel'
  22. )));
  23. }
  24. }