public function testCollapse()
 {
     $arrayObject = new ArrayObject([[1, 2], [3, 4, 5], [6, 7, 8]]);
     $new = $arrayObject->collapse();
     $this->assertSame([1, 2, 3, 4, 5, 6, 7, 8], $new->getArrayCopy());
     //with non array elements (should be skipped)
     $arrayObject = new ArrayObject([[1, 2], [3, 4, 5], [6, 7, 8], 9, 10]);
     $new = $arrayObject->collapse();
     $this->assertSame([1, 2, 3, 4, 5, 6, 7, 8], $new->getArrayCopy());
 }