/** * @covers Peach\DF\JsonCodec\Context::skip * @expectedException Peach\DF\JsonCodec\DecodeException */ public function testSkipFail() { $context = new Context("This is a pen.", new ArrayMap()); // read "This is a " $context->skip(10); // The remaining count is 4, but skipping 5 $context->skip(5); }