public function testPushInException() { $target = ['a' => ['b' => 1]]; $this->setExpectedException('\\RuntimeException'); Complex::pushIn($target, ['a', 'b'], 2); }