ExcelTester.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. use Mockery as m;
  3. class ExcelTester extends ExcelTestCase {
  4. /**
  5. * Test select sheets
  6. * @return
  7. */
  8. public function testSelectSheets()
  9. {
  10. $selected = $this->excel->selectSheets(array('sheet'));
  11. $this->assertEquals($this->excel, $selected);
  12. }
  13. /**
  14. * Test select sheets
  15. * @return
  16. */
  17. public function testSelectSheetsByIndex()
  18. {
  19. $selected = $this->excel->selectSheetsByIndex(array('0'));
  20. $this->assertEquals($this->excel, $selected);
  21. }
  22. /**
  23. * Test the share view
  24. * @return
  25. */
  26. public function testShareView()
  27. {
  28. $selected = $this->excel->shareView('filename', array('test'), array('test'));
  29. $this->assertEquals($this->writer, $selected);
  30. }
  31. /**
  32. * Test load view
  33. * @return
  34. */
  35. public function testLoadView()
  36. {
  37. $selected = $this->excel->loadView('filename', array('test'), array('test'));
  38. $this->assertEquals($this->writer, $selected);
  39. }
  40. }