Example #1
0
 public function testToArrayShouldReturnArrayForTraversableObjects()
 {
     $a = new ArrayObject(array('foo'));
     $nl = new NodeList($a);
     $r = $nl->toArray();
     $this->assertEquals($a->getArrayCopy(), $r);
 }