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