1 | <?php |
||
18 | class DataTypeTest extends PHPUnit_Framework_TestCase { |
||
19 | |||
20 | /** |
||
21 | * @dataProvider invalidConstructorArgumentsProvider |
||
22 | */ |
||
23 | public function testConstructorThrowsException( $propertyType, $valueType ) { |
||
27 | |||
28 | public function invalidConstructorArgumentsProvider() { |
||
29 | return [ |
||
30 | [ 'propertyType', '' ], |
||
31 | [ 'propertyType', null ], |
||
32 | [ 'propertyType', false ], |
||
33 | [ 'propertyType', 1 ], |
||
34 | [ '', 'valueType' ], |
||
35 | [ null, 'valueType' ], |
||
36 | [ false, 'valueType' ], |
||
37 | [ 0, 'valueType' ], |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | public function testGetId() { |
||
45 | |||
46 | public function testGetDataValueType() { |
||
50 | |||
51 | public function testGetMessageKey() { |
||
55 | |||
56 | public function testToArray() { |
||
60 | |||
61 | } |
||
62 |