diff --git a/tests/DotNotation/ArrayDotNotationTest.php b/tests/DotNotation/ArrayDotNotationTest.php index ca0aaf3..2818593 100644 --- a/tests/DotNotation/ArrayDotNotationTest.php +++ b/tests/DotNotation/ArrayDotNotationTest.php @@ -147,5 +147,11 @@ public function testRemovePathNotFound() { public function testRemovePathNotFoundShort() { $this->_object->remove('level0'); } + /** + * @expectedException \DSchoenbauer\DotNotation\Exception\PathNotArrayException + */ + public function testRemovePathNotArray() { + $this->_object->remove('levelA.levelB.levelD'); + } }