1 | <?php |
||
22 | abstract class DataValueTest extends TestCase { |
||
23 | |||
24 | /** |
||
25 | * Returns the name of the concrete class tested by this test. |
||
26 | * |
||
27 | * @since 0.1 |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | abstract public function getClass(); |
||
32 | |||
33 | abstract public function validConstructorArgumentsProvider(); |
||
34 | |||
35 | abstract public function invalidConstructorArgumentsProvider(); |
||
36 | |||
37 | /** |
||
38 | * Creates and returns a new instance of the concrete class. |
||
39 | * |
||
40 | * @since 0.1 |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function newInstance() { |
||
50 | |||
51 | /** |
||
52 | * @since 0.1 |
||
53 | * |
||
54 | * @return array [instance, constructor args] |
||
55 | */ |
||
56 | public function instanceProvider() { |
||
69 | |||
70 | /** |
||
71 | * @dataProvider validConstructorArgumentsProvider |
||
72 | * |
||
73 | * @since 0.1 |
||
74 | */ |
||
75 | public function testConstructorWithValidArguments() { |
||
83 | |||
84 | /** |
||
85 | * @dataProvider invalidConstructorArgumentsProvider |
||
86 | * |
||
87 | * @since 0.1 |
||
88 | */ |
||
89 | public function testConstructorWithInvalidArguments() { |
||
97 | |||
98 | /** |
||
99 | * @dataProvider instanceProvider |
||
100 | */ |
||
101 | public function testImplements( DataValue $value, array $arguments ) { |
||
108 | |||
109 | /** |
||
110 | * @dataProvider instanceProvider |
||
111 | */ |
||
112 | public function testGetType( DataValue $value, array $arguments ) { |
||
121 | |||
122 | /** |
||
123 | * @dataProvider instanceProvider |
||
124 | */ |
||
125 | public function testSerialization( DataValue $value, array $arguments ) { |
||
135 | |||
136 | /** |
||
137 | * @dataProvider instanceProvider |
||
138 | */ |
||
139 | public function testEquals( DataValue $value, array $arguments ) { |
||
146 | |||
147 | /** |
||
148 | * @dataProvider instanceProvider |
||
149 | */ |
||
150 | public function testGetHash( DataValue $value, array $arguments ) { |
||
157 | |||
158 | /** |
||
159 | * @dataProvider instanceProvider |
||
160 | */ |
||
161 | public function testGetCopy( DataValue $value, array $arguments ) { |
||
167 | |||
168 | /** |
||
169 | * @dataProvider instanceProvider |
||
170 | */ |
||
171 | public function testGetValueSimple( DataValue $value, array $arguments ) { |
||
175 | |||
176 | /** |
||
177 | * @dataProvider instanceProvider |
||
178 | */ |
||
179 | public function testGetArrayValueSimple( DataValue $value, array $arguments ) { |
||
183 | |||
184 | /** |
||
185 | * @dataProvider instanceProvider |
||
186 | */ |
||
187 | public function testToArray( DataValue $value, array $arguments ) { |
||
198 | |||
199 | } |
||
200 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.