/** * @dataProvider simpleArrayProvider * @depends testCreate */ public function testCreateFromObject(array $array) { $ma1 = MutableArray::create($array); $ma2 = MutableArray::createFromObject($ma1); $this->assertTrue($ma1->toArray() === $ma2->toArray()); }
/** * @dataProvider simpleArrayProvider * * @param array $array */ public function testStaticCreateFromObject(array $array) { $arrayzy = A::create($array); $resultArrayzy = A::createFromObject($arrayzy); $this->assertImmutable($arrayzy, $resultArrayzy, $array, $array); }