Пример #1
0
 /**
  * @test
  * @covers                   Cocur\Vale\Vale::removeValue()
  * @expectedException        InvalidArgumentException
  * @expectedExceptionMessage Did not remove path ["family","seat"] in structure {"family":[]}
  */
 public function removeValueThrowsExceptionIfValueCanNotBeSetInPath()
 {
     // This should really only happen if an element in the middle of the path is a scalar value.
     $this->vale->removeValue(['family' => []], ['family', 'seat']);
 }