Code Duplication    Length = 10-11 lines in 2 locations

src/Tests/Document/SwaggerDocumentTest.php 2 locations

@@ 41-51 (lines=11) @@
38
    /**
39
     * @test
40
     */
41
    public function canGetPathDefinitions()
42
    {
43
        $actual = self::getPetStoreDocument()->getPathDefinitions();
44
        $this->assertInternalType('array', $actual);
45
46
        // Check a few keys
47
        $this->assertArrayHasKey('/pet', $actual);
48
        $this->assertArrayHasKey('/pet/findByStatus', $actual);
49
        $this->assertArrayHasKey('/store/inventory', $actual);
50
        $this->assertArrayHasKey('/user', $actual);
51
    }
52
53
    /**
54
     * @test
@@ 56-65 (lines=10) @@
53
    /**
54
     * @test
55
     */
56
    public function getOperationDefinition()
57
    {
58
        $actual = self::getPetStoreDocument()->getOperationDefinition('/store/inventory', 'get');
59
        $this->assertInternalType('array', $actual);
60
61
        // Check a few keys
62
        $this->assertArrayHasKey('parameters', $actual);
63
        $this->assertArrayHasKey('responses', $actual);
64
        $this->assertArrayHasKey('security', $actual);
65
    }
66
67
    /**
68
     * @test