Beispiel #1
0
 /**
  * @dataProvider arraySet1
  */
 public function testDiffKeys($array)
 {
     $compareArray = ['k1', 'k2'];
     $a = new ArrayObject($array);
     @$a->diffKeys($compareArray);
     @($array = array_diff_key($array, $compareArray));
     $this->assertSame($array, $a->val());
 }