Code Duplication    Length = 7-7 lines in 2 locations

tests/WalkerTest.php 2 locations

@@ 82-88 (lines=7) @@
79
        $this->assertSame($resolved, $resolved->properties->baz);
80
    }
81
82
    public function testResolveReferencesWithOneAbsoluteRemoteReferenceOnly()
83
    {
84
        $schema = $this->loadSchema('valid/remote-absolute-reference');
85
        $resolved = $this->walker->resolveReferences($schema, new Uri('file:///foo/bar'));
86
        $this->assertEquals(1, count(get_object_vars($resolved)));
87
        $this->assertObjectHasAttribute('maximum', $resolved);
88
    }
89
90
    public function testResolveReferencesWithOneRelativeRemoteReferenceOnly()
91
    {
@@ 90-96 (lines=7) @@
87
        $this->assertObjectHasAttribute('maximum', $resolved);
88
    }
89
90
    public function testResolveReferencesWithOneRelativeRemoteReferenceOnly()
91
    {
92
        $schema = $this->loadSchema('valid/remote-relative-reference');
93
        $resolved = $this->walker->resolveReferences($schema, new Uri('http://localhost:1234/valid/base.json'));
94
        $this->assertEquals(1, count(get_object_vars($resolved)));
95
        $this->assertObjectHasAttribute('minimum', $resolved);
96
    }
97
98
    public function testResolveReferencesWithScopeChanges()
99
    {