1 | <?php |
||
20 | class DataTest extends \PHPUnit_Framework_TestCase{ |
||
21 | |||
22 | /** |
||
23 | * @var \chillerlan\QRCode\BitBuffer |
||
24 | */ |
||
25 | protected $bitBuffer; |
||
26 | |||
27 | /** |
||
28 | * @var \chillerlan\QRCode\Data\QRDataInterface |
||
29 | */ |
||
30 | protected $module; |
||
31 | |||
32 | public function bitProvider(){ |
||
42 | |||
43 | protected function setUp(){ |
||
46 | |||
47 | /** |
||
48 | * @dataProvider bitProvider |
||
49 | */ |
||
50 | public function testMode($mode, $class, $data){ |
||
54 | |||
55 | /** |
||
56 | * @dataProvider bitProvider |
||
57 | */ |
||
58 | public function testWrite($mode, $class, $data){ |
||
63 | |||
64 | /** |
||
65 | * @expectedException \chillerlan\QRCode\Data\QRCodeDataException |
||
66 | * @expectedExceptionMessage illegal char: 92 |
||
67 | */ |
||
68 | public function testAlphaNumCharException(){ |
||
73 | |||
74 | /** |
||
75 | * @expectedException \chillerlan\QRCode\Data\QRCodeDataException |
||
76 | * @expectedExceptionMessage illegal char at 7 (50051) |
||
77 | */ |
||
78 | public function testKanjiCharExceptionA(){ |
||
83 | |||
84 | /** |
||
85 | * @expectedException \chillerlan\QRCode\Data\QRCodeDataException |
||
86 | * @expectedExceptionMessage illegal char at 7 |
||
87 | */ |
||
88 | public function testKanjiCharExceptionB(){ |
||
93 | |||
94 | /** |
||
95 | * @expectedException \chillerlan\QRCode\Data\QRCodeDataException |
||
96 | * @expectedExceptionMessage illegal char: 92 |
||
97 | */ |
||
98 | public function testNumberCharException(){ |
||
103 | |||
104 | |||
105 | } |
||
106 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.