1 | <?php |
||
16 | class UtilTest extends \PHPUnit_Framework_TestCase{ |
||
17 | |||
18 | public function testIsNumber(){ |
||
22 | |||
23 | public function testIsAlphaNum(){ |
||
27 | |||
28 | // http://stackoverflow.com/a/24755772 |
||
29 | public function testIsKanji(){ |
||
35 | |||
36 | // coverage |
||
37 | public function testGetBCHTypeNumber(){ |
||
40 | |||
41 | /** |
||
42 | * @expectedException \chillerlan\QRCode\QRCodeException |
||
43 | * @expectedExceptionMessage $typeNumber: 1 / $errorCorrectLevel: 42 |
||
44 | */ |
||
45 | public function testGetRSBlocksException(){ |
||
48 | |||
49 | /** |
||
50 | * @expectedException \chillerlan\QRCode\QRCodeException |
||
51 | * @expectedExceptionMessage Invalid error correct level: 42 |
||
52 | */ |
||
53 | public static function testGetMaxLengthECLevelException(){ |
||
56 | |||
57 | /** |
||
58 | * @expectedException \chillerlan\QRCode\QRCodeException |
||
59 | * @expectedExceptionMessage Invalid mode: 1337 |
||
60 | */ |
||
61 | public static function testGetMaxLengthModeException(){ |
||
64 | |||
65 | } |
||
66 |