QRStringTestAbstract.php 674 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Class QRStringTestAbstract
  4. *
  5. * @created 24.12.2017
  6. * @author Smiley <smiley@chillerlan.net>
  7. * @copyright 2017 Smiley
  8. * @license MIT
  9. */
  10. namespace chillerlan\QRCodeTest\Output;
  11. use chillerlan\QRCode\Output\QRString;
  12. /**
  13. * Tests the QRString output module
  14. */
  15. abstract class QRStringTestAbstract extends QROutputTestAbstract{
  16. protected string $FQN = QRString::class;
  17. public static function moduleValueProvider():array{
  18. return [
  19. 'invalid: wrong type' => [[], false],
  20. 'valid: string' => ['abc', true],
  21. 'valid: zero length string' => ['', true],
  22. 'valid: empty string' => [' ', true],
  23. ];
  24. }
  25. }