@@ 180-187 (lines=8) @@ | ||
177 | $this->assertEquals(['foo', 'bar'], $graphEdge->asArray()); |
|
178 | } |
|
179 | ||
180 | public function testACollectionCanBeConvertedToProperJson() |
|
181 | { |
|
182 | $graphEdge = new GraphEdge($this->request, ['foo', 'bar', 123]); |
|
183 | ||
184 | $graphEdgeAsString = $graphEdge->asJson(); |
|
185 | ||
186 | $this->assertEquals('["foo","bar",123]', $graphEdgeAsString); |
|
187 | } |
|
188 | ||
189 | public function testACollectionCanBeCounted() |
|
190 | { |
|
@@ 189-196 (lines=8) @@ | ||
186 | $this->assertEquals('["foo","bar",123]', $graphEdgeAsString); |
|
187 | } |
|
188 | ||
189 | public function testACollectionCanBeCounted() |
|
190 | { |
|
191 | $graphEdge = new GraphEdge($this->request, ['foo', 'bar', 'baz']); |
|
192 | ||
193 | $graphEdgeCount = count($graphEdge); |
|
194 | ||
195 | $this->assertEquals(3, $graphEdgeCount); |
|
196 | } |
|
197 | ||
198 | public function testACollectionCanBeAccessedAsAnArray() |
|
199 | { |