DispatchControllerTest::testInitialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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