Code Duplication    Length = 8-8 lines in 2 locations

tests/ResolverTest.php 2 locations

@@ 71-78 (lines=8) @@
68
     * @param string   $pointerUri
69
     * @param stdClass $resolved
70
     */
71
    public function testResolveChain(stdClass $schema, $pointerUri, stdClass $resolved)
72
    {
73
        $this->resolver->initialize($schema, new Uri('file:///foo/bar'));
74
        $reference = new stdClass();
75
        $reference->{'$ref'} = $pointerUri;
76
        $actual = $this->resolver->resolve($reference);
77
        $this->assertSame($actual[1], $resolved);
78
    }
79
80
    /**
81
     * @dataProvider unresolvablePointerPropertyProvider
@@ 190-197 (lines=8) @@
187
     * @param string   $pointerUri
188
     * @param stdClass $expectedSchema
189
     */
190
    public function testResolveRemoteSchema($pointerUri, stdClass $expectedSchema)
191
    {
192
        $this->resolver->initialize(new stdClass(), new Uri('file:///foo/bar'));
193
        $reference = new stdClass();
194
        $reference->{'$ref'} = $pointerUri;
195
        $resolved = $this->resolver->resolve($reference);
196
        $this->assertEquals($resolved[1], $expectedSchema);
197
    }
198
199
    /**
200
     * @expectedException \JVal\Exception\JsonDecodeException