ClientTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInvalidResource() 0 4 1
1
<?php
2
3
namespace GuillermoandraeTest\Highrise\Client;
4
5
use BadMethodCallException;
6
use Guillermoandrae\Highrise\Client\Client;
7
use PHPUnit\Framework\TestCase;
8
9
class ClientTest extends TestCase
10
{
11
    public function testInvalidResource()
12
    {
13
        $this->expectException(BadMethodCallException::class);
14
        (new Client())->you();
0 ignored issues
show
Bug introduced by
The method you() does not exist on Guillermoandrae\Highrise\Client\Client. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

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

14
        (new Client())->/** @scrutinizer ignore-call */ you();
Loading history...
15
    }
16
}
17