/** * @dataProvider simpleArrayProvider */ public function testToJson(array $array) { $json = json_encode($array); $ma = new MutableArray($array); $this->assertTrue($json === $ma->toJson()); }