GridlinesTest.php 855 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace PhpOffice\PhpPresentation\Tests\Shape\Chart;
  3. use PhpOffice\PhpPresentation\Shape\Chart\Gridlines;
  4. class GridlinesTest extends \PHPUnit_Framework_TestCase
  5. {
  6. public function testConstruct()
  7. {
  8. $object = new Gridlines();
  9. $this->assertInstanceOf('PhpOffice\PhpPresentation\Style\Outline', $object->getOutline());
  10. }
  11. public function testGetSetOutline()
  12. {
  13. $object = new Gridlines();
  14. $oStub = $this->getMockBuilder('PhpOffice\PhpPresentation\Style\Outline')->getMock();
  15. $this->assertInstanceOf('PhpOffice\PhpPresentation\Style\Outline', $object->getOutline());
  16. $this->assertInstanceOf('PhpOffice\PhpPresentation\Shape\Chart\Gridlines', $object->setOutline($oStub));
  17. $this->assertInstanceOf('PhpOffice\PhpPresentation\Style\Outline', $object->getOutline());
  18. }
  19. }