QRCodeTest.php 782 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. * @filesource QRCodeTest.php
  5. * @created 08.02.2016
  6. * @author Smiley <smiley@chillerlan.net>
  7. * @copyright 2015 Smiley
  8. * @license MIT
  9. */
  10. namespace chillerlan\QRCodeTest;
  11. use chillerlan\QRCode\QRCode;
  12. use chillerlan\QRCode\QROptions;
  13. use chillerlan\QRCode\Output\QRImage;
  14. use chillerlan\QRCode\Output\QRImageOptions;
  15. use chillerlan\QRCode\Output\QRString;
  16. use chillerlan\QRCode\Output\QRStringOptions;
  17. class QRCodeTest extends \PHPUnit_Framework_TestCase{
  18. public function testInstance(){
  19. $output = new QRString;
  20. $options = new QROptions;
  21. $this->assertInstanceOf(QRString::class, $output);
  22. $this->assertInstanceOf(QROptions::class, $options);
  23. $this->assertInstanceOf(QRCode::class, new QRCode('data', $output, $options));
  24. }
  25. }