/** * @test * @covers Cocur\Vale\Vale::setValue() * @expectedException InvalidArgumentException * @expectedExceptionMessage Did not set path ["family","seat"] in structure {"family":"Lannister"} */ public function setValueThrowsExceptionIfValueCanNotBeSetInPath() { // This should really only happen if an element in the middle of the path is a scalar value. $this->vale->setValue(['family' => 'Lannister'], ['family', 'seat'], 'Casterly Rock'); }