Completed
Push — master ( db69bb...88bf51 )
by Matthijs
06:15 queued 03:23
created

Tests/Discoverer/CssSelectorDiscovererTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/*
4
 * This file is part of the Spider package.
5
 *
6
 * (c) Matthijs van den Bos <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace VDB\Spider\Tests\Discoverer;
13
14
use VDB\Spider\Discoverer\CssSelectorDiscoverer;
15
16
/**
17
 *
18
 */
19 View Code Duplication
class CssSelectorDiscovererTest extends DiscovererTestCase
0 ignored issues
show
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
20
{
21
    /**
22
     * @covers VDB\Spider\Discoverer\XPathExpressionDiscoverer::discover()
23
     */
24
    public function testDiscover()
25
    {
26
        $discoverer = new CssSelectorDiscoverer("a");
27
28
        $uris = $discoverer->discover($this->spiderResource);
29
        $uri = $uris[0];
30
31
        $this->assertInstanceOf('VDB\\Spider\\Uri\\DiscoveredUri', $uri);
32
        $this->assertEquals($this->uri->toString(), $uri->toString());
33
    }
34
}
35