FactoryTest.php 562 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @package Zend_Pdf
  4. * @subpackage UnitTests
  5. */
  6. /** Zend_Pdf */
  7. require_once 'Zend/Pdf.php';
  8. /** Zend_Pdf_Page */
  9. require_once 'Zend/Pdf/Page.php';
  10. /** PHPUnit Test Case */
  11. require_once 'PHPUnit/Framework/TestCase.php';
  12. /**
  13. * @package Zend_Pdf
  14. * @subpackage UnitTests
  15. */
  16. class Zend_Pdf_FactoryTest extends PHPUnit_Framework_TestCase
  17. {
  18. public function testNewPageCreator()
  19. {
  20. $pdf = new Zend_Pdf();
  21. $page = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
  22. $this->assertTrue($page instanceof Zend_Pdf_Page);
  23. }
  24. }