1 | <?php |
||
19 | class CollectionTest extends PHPUnit_Framework_TestCase |
||
20 | { |
||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $rows = [ |
||
25 | [1, 'hello'], |
||
26 | [2, 'world'] |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private $columns = ['id', 'name']; |
||
33 | |||
34 | /** |
||
35 | * @var Collection |
||
36 | */ |
||
37 | private $collection; |
||
38 | |||
39 | /** |
||
40 | * @covers ::__construct |
||
41 | */ |
||
42 | protected function setUp() |
||
46 | |||
47 | /** |
||
48 | * @covers ::map |
||
49 | */ |
||
50 | public function testMap() |
||
58 | |||
59 | /** |
||
60 | * @covers ::getColumnIndex |
||
61 | */ |
||
62 | public function testGetColumnIndex() |
||
69 | |||
70 | /** |
||
71 | * @covers ::getColumns |
||
72 | */ |
||
73 | public function testGetColumns() |
||
78 | |||
79 | /** |
||
80 | * @covers ::getColumns |
||
81 | */ |
||
82 | public function testGetColumnsSameColumnTwice() { |
||
86 | |||
87 | /** |
||
88 | * @covers ::getRows |
||
89 | */ |
||
90 | public function testGetRows() |
||
94 | |||
95 | /** |
||
96 | * @covers ::count |
||
97 | */ |
||
98 | public function testCount() |
||
102 | |||
103 | public function testIterator() |
||
111 | } |
||
112 |