File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change 25
25
/**
26
26
* @package Facebook
27
27
*/
28
- class GraphNode implements \IteratorAggregate
28
+ class GraphNode
29
29
{
30
30
/**
31
31
* @var array maps object key names to Graph object types
@@ -102,16 +102,6 @@ public function asArray()
102
102
}, $ this ->fields );
103
103
}
104
104
105
- /**
106
- * Get an iterator for the fields.
107
- *
108
- * @return \ArrayIterator
109
- */
110
- public function getIterator ()
111
- {
112
- return new \ArrayIterator ($ this ->fields );
113
- }
114
-
115
105
/**
116
106
* Convert the collection to its string representation.
117
107
*
Original file line number Diff line number Diff line change @@ -196,19 +196,4 @@ public function testAGraphNodeCanBeAccessedAsAnArray()
196
196
$ this ->assertEquals ('bar ' , $ graphNode ->getField ('foo ' ));
197
197
$ this ->assertEquals ('baz ' , $ graphNode ->getField ('faz ' ));
198
198
}
199
-
200
- public function testAGraphNodeCanBeIteratedOver ()
201
- {
202
- $ graphNode = new GraphNode (['foo ' => 'bar ' , 'faz ' => 'baz ' ]);
203
-
204
- $ this ->assertInstanceOf (\IteratorAggregate::class, $ graphNode );
205
-
206
- $ newArray = [];
207
-
208
- foreach ($ graphNode as $ k => $ v ) {
209
- $ newArray [$ k ] = $ v ;
210
- }
211
-
212
- $ this ->assertEquals (['foo ' => 'bar ' , 'faz ' => 'baz ' ], $ newArray );
213
- }
214
199
}
You can’t perform that action at this time.
0 commit comments