ClientTest::testInvalidResource()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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