UsersTest::testMe()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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
        $repository = $this->getMockRepository('users', $this->getMockModelXml('user'));
12
        $repository->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
        $repository->/** @scrutinizer ignore-call */ 
13
                     me();
Loading history...
13
        $this->assertSameLastRequestUri('/me.xml', $repository);
14
    }
15
}
16