@@ 167-183 (lines=17) @@ | ||
164 | $this->list->get(-1); |
|
165 | } |
|
166 | ||
167 | public function testGetAll() { |
|
168 | foreach($this->list->getAll() as $node) { |
|
169 | $this->assertNull($node); |
|
170 | } |
|
171 | ||
172 | $this->list->push(20); |
|
173 | $this->list->push(true); |
|
174 | $this->list->push(15); |
|
175 | $this->list->push(3.14); |
|
176 | $this->list->push("string"); |
|
177 | $data = []; |
|
178 | foreach($this->list->getAll() as $node) { |
|
179 | $data[] = $node; |
|
180 | } |
|
181 | $this->assertCount(5, $data); |
|
182 | $this->assertSame([20, true, 15, 3.14, "string"], $data); |
|
183 | } |
|
184 | ||
185 | public function testToArray() { |
|
186 | $this->list->push(20); |
@@ 165-181 (lines=17) @@ | ||
162 | $this->list->get(-1); |
|
163 | } |
|
164 | ||
165 | public function testGetAll() { |
|
166 | foreach($this->list->getAll() as $node) { |
|
167 | $this->assertNull($node); |
|
168 | } |
|
169 | ||
170 | $this->list->push(20); |
|
171 | $this->list->push(true); |
|
172 | $this->list->push(15); |
|
173 | $this->list->push(3.14); |
|
174 | $this->list->push("string"); |
|
175 | $data = []; |
|
176 | foreach($this->list->getAll() as $node) { |
|
177 | $data[] = $node; |
|
178 | } |
|
179 | $this->assertCount(5, $data); |
|
180 | $this->assertSame([20, true, 15, 3.14, "string"], $data); |
|
181 | } |
|
182 | ||
183 | public function testToArray() { |
|
184 | $this->list->push(20); |
@@ 167-183 (lines=17) @@ | ||
164 | $this->list->get(-1); |
|
165 | } |
|
166 | ||
167 | public function testGetAll() { |
|
168 | foreach($this->list->getAll() as $node) { |
|
169 | $this->assertNull($node); |
|
170 | } |
|
171 | ||
172 | $this->list->push(20); |
|
173 | $this->list->push(true); |
|
174 | $this->list->push(15); |
|
175 | $this->list->push(3.14); |
|
176 | $this->list->push("string"); |
|
177 | $data = []; |
|
178 | foreach($this->list->getAll() as $node) { |
|
179 | $data[] = $node; |
|
180 | } |
|
181 | $this->assertCount(5, $data); |
|
182 | $this->assertSame([20, true, 15, 3.14, "string"], $data); |
|
183 | } |
|
184 | ||
185 | public function testToArray() { |
|
186 | $this->list->push(20); |