Failed Conditions
Push — master ( 2fcedf...efe7fa )
by Guillermo A.
01:42
created

UsersTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMe() 0 5 1
1
<?php
2
3
namespace GuillermoandraeTest\Highrise\Resources;
4
5
class UsersTest extends TestCase
6
{
7
    public function testMe()
8
    {
9
        $resource = $this->getMockResource('users', '<user><id>1</id></user>');
10
        $resource->me();
0 ignored issues
show
Bug introduced by
The method me() does not exist on Guillermoandrae\Highrise...urces\ResourceInterface. It seems like you code against a sub-type of Guillermoandrae\Highrise...urces\ResourceInterface such as Guillermoandrae\Highrise\Resources\Users. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

10
        $resource->/** @scrutinizer ignore-call */ 
11
                   me();
Loading history...
11
        $this->assertSameLastRequestUri('/me.xml', $resource);
12
    }
13
}
14