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