DispatchControllerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInitialize() 0 8 1
1
<?php
2
3
namespace Cowglow\InstagramGallery\Tests\Infrastructure;
4
5
use Cowglow\InstagramGallery\Tests\AbstractTestBase;
6
7
class DispatchControllerTest extends AbstractTestBase
8
{
9
    public function testInitialize(): void
10
    {
11
        $testStub = $this->getMockBuilder('DispatchController')
12
                         ->disableOriginalConstructor()
13
                         ->getMock();
14
15
        $isCallable = is_callable('Initialize', true, $testStub);
0 ignored issues
show
Bug introduced by
$testStub of type PHPUnit\Framework\MockObject\MockObject is incompatible with the type string expected by parameter $callable_name of is_callable(). ( Ignorable by Annotation )

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

15
        $isCallable = is_callable('Initialize', true, /** @scrutinizer ignore-type */ $testStub);
Loading history...
16
        $this->assertEquals(true, $isCallable);
17
    }
18
}
19