1 | <?php |
||
21 | abstract class DiffOpTest extends DiffTestCase { |
||
22 | |||
23 | /** |
||
24 | * Returns the name of the concrete class tested by this test. |
||
25 | * |
||
26 | * @since 0.1 |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public abstract function getClass(); |
||
31 | |||
32 | /** |
||
33 | * First element can be a boolean indication if the successive values are valid, |
||
34 | * or a string indicating the type of exception that should be thrown (ie not valid either). |
||
35 | * |
||
36 | * @since 0.1 |
||
37 | */ |
||
38 | public abstract function constructorProvider(); |
||
39 | |||
40 | /** |
||
41 | * Creates and returns a new instance of the concrete class. |
||
42 | * |
||
43 | * @since 0.1 |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function newInstance() { |
||
51 | |||
52 | /** |
||
53 | * @since 0.1 |
||
54 | * |
||
55 | * @return array[] An array of arrays, each containing an instance and an array of constructor |
||
56 | * arguments used to construct the instance. |
||
57 | */ |
||
58 | public function instanceProvider() { |
||
74 | |||
75 | /** |
||
76 | * @dataProvider constructorProvider |
||
77 | * |
||
78 | * @since 0.1 |
||
79 | */ |
||
80 | public function testConstructor() { |
||
91 | |||
92 | /** |
||
93 | * @dataProvider instanceProvider |
||
94 | */ |
||
95 | public function testIsAtomic( DiffOp $diffOp ) { |
||
98 | |||
99 | /** |
||
100 | * @dataProvider instanceProvider |
||
101 | */ |
||
102 | public function testGetType( DiffOp $diffOp ) { |
||
105 | |||
106 | /** |
||
107 | * @dataProvider instanceProvider |
||
108 | */ |
||
109 | public function testSerialization( DiffOp $diffOp ) { |
||
115 | |||
116 | /** |
||
117 | * @dataProvider instanceProvider |
||
118 | */ |
||
119 | public function testCount( DiffOp $diffOp ) { |
||
136 | |||
137 | /** |
||
138 | * @dataProvider instanceProvider |
||
139 | */ |
||
140 | public function testToArray( DiffOp $diffOp ) { |
||
148 | |||
149 | /** |
||
150 | * @dataProvider instanceProvider |
||
151 | */ |
||
152 | public function testToArrayWithConversion( DiffOp $diffOp ) { |
||
159 | |||
160 | } |
||
161 |