/** * @dataProvider simpleArrayProvider */ public function testFlip(array $array) { $flippedArray = array_flip($array); $ma = new MutableArray($array); $copiedMa = $ma->flip(); $this->assertTrue($copiedMa === $ma); $this->assertTrue($flippedArray === $ma->toArray()); }
/** * @dataProvider simpleArrayProvider * * @param array $array */ public function testFlip(array $array) { $arrayzy = new A($array); $resultArrayzy = $arrayzy->flip(); $resultArray = array_flip($array); $this->assertMutable($arrayzy, $resultArrayzy, $resultArray); }