Failed Conditions
Push — master ( fc7301...8aadf7 )
by Matthijs
06:40
created

tests/VDB/Spider/Tests/Uri/UriDecoratorTest.php (2 issues)

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
 * This file is part of the Spider package.
4
 *
5
 * (c) Matthijs van den Bos <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace VDB\Spider\Tests\Uri;
12
13
use VDB\Spider\Tests\TestCase;
14
use VDB\Uri\Uri;
15
use VDB\Spider\Uri\UriDecorator;
16
17
/**
18
 *
19
 */
20
class UriDecoratorTest extends TestCase
21
{
22
    /**
23
     * @covers VDB\Spider\Uri\UriDecorator
24
     */
25
    public function testConstruct()
26
    {
27
        $stub = $this->getMockForAbstractClass('VDB\\Spider\\Uri\\UriDecorator', ['http://example.org']);
28
        $this->assertEquals('http://example.org', $stub->toString());
0 ignored issues
show
The method toString() does not seem to exist on object<PHPUnit\Framework\MockObject\MockObject>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
29
30
        $stub = $this->getMockForAbstractClass('VDB\\Spider\\Uri\\UriDecorator', [new Uri('http://example.org')]);
31
        $this->assertEquals('http://example.org', $stub->toString());
0 ignored issues
show
The method toString() does not seem to exist on object<PHPUnit\Framework\MockObject\MockObject>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
32
    }
33
}
34