Code Duplication    Length = 10-10 lines in 3 locations

src/Tests/Routing/SwaggerRouteLoaderTest.php 3 locations

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