Code Duplication    Length = 8-9 lines in 2 locations

tests/VDB/Spider/Tests/Filter/Postfetch/MimeTypeFilterTest.php 1 location

@@ 29-37 (lines=9) @@
26
    /** @var DiscoveredUri */
27
    protected $uri;
28
29
    protected function setUp()
30
    {
31
        $this->uri = new DiscoveredUri(new Uri('http://foobar.com/image.jpg'));
32
33
        $this->spiderResource = new Resource(
34
            $this->uri,
35
            new Response(200, ['Content-Type' => 'image/jpeg'], '')
36
        );
37
    }
38
39
    /**
40
     * @covers VDB\Spider\Filter\Postfetch\MimeTypeFilter

tests/VDB/Spider/Tests/ResourceTest.php 1 location

@@ 23-30 (lines=8) @@
20
     */
21
    protected $html;
22
23
    protected function setUp()
24
    {
25
        $this->html = file_get_contents(__DIR__ . '/Fixtures/ResourceTestHTMLResource.html');
26
        $this->resource = new Resource(
27
            new DiscoveredUri(new Uri('/domains/special', 'http://example.org')),
28
            new Response(200, [], $this->html)
29
        );
30
    }
31
32
    /**
33
     * @covers VDB\Spider\Resource