Code Duplication    Length = 11-11 lines in 2 locations

src/TreeHouse/IoBundle/Test/Import/FeedType/AbstractFeedTypeTestCase.php 1 location

@@ 172-182 (lines=11) @@
169
     *
170
     * @return ItemFixture
171
     */
172
    protected function getItemFixture($name, $feedType)
173
    {
174
        if (null === $feed = $this->getFeed($feedType)) {
175
            $this->markTestSkipped(sprintf('Add an origin with a %s feed to the database first', $feedType));
176
        }
177
178
        $actual = $this->getActualItemFixture($feed, $name, $feedType);
179
        $expected = $this->getExpectedItemFixture($feed, $name, $feedType);
180
181
        return new ItemFixture($actual, $expected);
182
    }
183
184
    /**
185
     * @param Feed   $feedEntity

src/TreeHouse/IoBundle/Test/Scrape/Parser/ParserTypeTestCase.php 1 location

@@ 191-201 (lines=11) @@
188
     *
189
     * @return ItemFixture
190
     */
191
    protected function getItemFixture($parserType, $fixtureName)
192
    {
193
        if (null === $scraper = $this->getScraperEntity($parserType)) {
194
            $this->markTestSkipped(sprintf('Add an origin with a %s scraper to the database first', $parserType));
195
        }
196
197
        $actual = $this->getActualItemFixture($scraper, $parserType, $fixtureName);
198
        $expected = $this->getExpectedItemFixture($scraper, $parserType, $fixtureName);
199
200
        return new ItemFixture($actual, $expected);
201
    }
202
203
    /**
204
     * @param Scraper $scraper