public function testNotArrayShouldThrowKeyException() { $validator = new KeyNested('baz.bar'); $object = 123; $this->assertFalse($validator->assert($object)); }