Code Duplication    Length = 10-10 lines in 3 locations

src/Tests/Routing/SwaggerRouteLoaderTest.php 3 locations

@@ 71-80 (lines=10) @@
68
    /**
69
     * @test
70
     */
71
    public function canLoadMultipleDocuments()
72
    {
73
        $this->documentMock
74
            ->expects($this->any())
75
            ->method('getPathDefinitions')
76
            ->willReturn([]);
77
78
        $this->loader->load(self::DOCUMENT_PATH);
79
        $this->loader->load(self::DOCUMENT_PATH . '2');
80
    }
81
82
    /**
83
     * @test
@@ 107-116 (lines=10) @@
104
     * @test
105
     * @expectedException \RuntimeException
106
     */
107
    public function cannotTryToLoadSameDocumentMoreThanOnce()
108
    {
109
        $this->documentMock
110
            ->expects($this->any())
111
            ->method('getPathDefinitions')
112
            ->willReturn([]);
113
114
        $this->loader->load(self::DOCUMENT_PATH);
115
        $this->loader->load(self::DOCUMENT_PATH);
116
    }
117
118
    /**
119
     * @test
@@ 121-130 (lines=10) @@
118
    /**
119
     * @test
120
     */
121
    public function willReturnRouteCollection()
122
    {
123
        $this->documentMock
124
            ->expects($this->once())
125
            ->method('getPathDefinitions')
126
            ->willReturn([]);
127
128
        $routes = $this->loader->load(self::DOCUMENT_PATH);
129
        $this->assertInstanceOf('Symfony\Component\Routing\RouteCollection', $routes);
130
    }
131
132
    /**
133
     * @test