NumberTest.php 638 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Class NumberTest
  4. *
  5. * @created 24.11.2017
  6. * @author Smiley <smiley@chillerlan.net>
  7. * @copyright 2017 Smiley
  8. * @license MIT
  9. */
  10. namespace chillerlan\QRCodeTest\Data;
  11. use chillerlan\QRCode\Data\Number;
  12. /**
  13. * Tests the Number class
  14. */
  15. final class NumberTest extends DataInterfaceTestAbstract{
  16. protected static string $FQN = Number::class;
  17. protected static string $testdata = '0123456789';
  18. /**
  19. * isNumber() should pass on any number and fail on anything else
  20. */
  21. public static function stringValidateProvider():array{
  22. return [
  23. ['0123456789', true],
  24. ['ABC123', false],
  25. ];
  26. }
  27. }