1 | <?php |
||
23 | abstract class CollectionTestCase extends TestCase |
||
24 | { |
||
25 | /** |
||
26 | * @param int $size |
||
27 | * |
||
28 | * @return CollectionInterface |
||
29 | */ |
||
30 | abstract protected function randomCollection($size = null); |
||
31 | |||
32 | /** |
||
33 | * @param int $size |
||
34 | * |
||
35 | * @return mixed[] |
||
36 | */ |
||
37 | protected function randomValues($size = null) |
||
49 | |||
50 | /** |
||
51 | * @return CollectionInterface |
||
52 | */ |
||
53 | abstract protected function emptyCollection(); |
||
54 | |||
55 | /** |
||
56 | * @return mixed |
||
57 | */ |
||
58 | abstract protected function randomValue(); |
||
59 | |||
60 | /** |
||
61 | * @return mixed |
||
62 | */ |
||
63 | abstract protected function uniqueValue(); |
||
64 | |||
65 | /** |
||
66 | * @return \Cubiche\Core\Comparable\ComparatorInterface |
||
67 | */ |
||
68 | protected function comparator() |
||
72 | |||
73 | /** |
||
74 | * Test class. |
||
75 | */ |
||
76 | public function testClass() |
||
83 | |||
84 | /** |
||
85 | * Test clear. |
||
86 | */ |
||
87 | public function testClear() |
||
101 | |||
102 | /** |
||
103 | * Test count. |
||
104 | */ |
||
105 | public function testCount() |
||
114 | |||
115 | /** |
||
116 | * Test getIterator. |
||
117 | */ |
||
118 | public function testGetIterator() |
||
127 | |||
128 | /** |
||
129 | * Test toArray. |
||
130 | */ |
||
131 | public function testToArray() |
||
139 | |||
140 | /** |
||
141 | * Test slice. |
||
142 | */ |
||
143 | public function testSlice() |
||
158 | |||
159 | /** |
||
160 | * Test find. |
||
161 | */ |
||
162 | public function testFind() |
||
188 | |||
189 | /** |
||
190 | * Test sorted. |
||
191 | */ |
||
192 | public function testSorted() |
||
208 | } |
||
209 |