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

UsersTest::testMe()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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