QRCodeTest.php 758 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Class QRCodeTest
  4. *
  5. * @filesource QRCodeTest.php
  6. * @created 17.11.2017
  7. * @package chillerlan\QRCodeTest
  8. * @author Smiley <smiley@chillerlan.net>
  9. * @copyright 2017 Smiley
  10. * @license MIT
  11. */
  12. namespace chillerlan\QRCodeTest;
  13. use chillerlan\QRCode\Output\QRMarkupOptions;
  14. use chillerlan\QRCode\QRCode;
  15. abstract class QRCodeTest extends QRTestAbstract{
  16. protected $FQCN = QRCode::class;
  17. public function optionsDataProvider(){
  18. return [
  19. [QRMarkupOptions::class],
  20. # [],
  21. ];
  22. }
  23. /**
  24. * @dataProvider optionsDataProvider
  25. */
  26. public function testInstance($options){
  27. $q = $this->reflection->newInstanceArgs([new $options]);
  28. $this->assertInstanceOf($this->FQCN, $q);
  29. # print_r($q->render('test'));
  30. }
  31. }