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