GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MethodResolverTest::test()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 13
Ratio 100 %

Importance

Changes 0
Metric Value
dl 13
loc 13
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace Hateoas\Tests\Configuration\Provider\Resolver;
4
5
use Hateoas\Configuration\RelationProvider;
6
use Hateoas\Configuration\Provider\Resolver\MethodResolver;
7
use Hateoas\Tests\TestCase;
8
9 View Code Duplication
class MethodResolverTest extends TestCase
0 ignored issues
show
Duplication introduced by
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...
10
{
11
    public function test()
12
    {
13
        $object = new \StdClass();
14
        $providerProvider = new MethodResolver();
15
16
        $this->assertNull($providerProvider->getRelationProvider(new RelationProvider('!-;'), $object));
17
        $this->assertNull($providerProvider->getRelationProvider(new RelationProvider('foo:bar'), $object));
18
        $this->assertNull($providerProvider->getRelationProvider(new RelationProvider('foo::bar'), $object));
19
        $this->assertSame(
20
            [$object, 'getRelations'],
21
            $providerProvider->getRelationProvider(new RelationProvider('getRelations'), $object)
22
        );
23
    }
24
}
25