Completed
Push — master ( 037cc5...776a32 )
by Guillermo A.
09:42
created

UsersTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
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\Repositories;
4
5
use GuillermoandraeTest\Highrise\TestCase;
6
7
class UsersTest extends TestCase
8
{
9
    public function testMe()
10
    {
11
        $resource = $this->getMockRepository('users', '<user><id>1</id></user>');
12
        $resource->me();
0 ignored issues
show
Bug introduced by
The method me() does not exist on Guillermoandrae\Repositories\RepositoryInterface. It seems like you code against a sub-type of Guillermoandrae\Repositories\RepositoryInterface such as Guillermoandrae\Highrise...itories\UsersRepository or Guillermoandrae\Highrise...itories\UsersRepository. ( Ignorable by Annotation )

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

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