Passed
Push — master ( ee061b...116180 )
by Patrick
03:02
created

LogFactoryHelper::createLogFacadeMock()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace ForecastAutomationTests\Log\Shared;
4
5
use ForecastAutomation\Log\LogFacade;
6
use PHPUnit\Framework\TestCase;
7
8
class LogFactoryHelper extends TestCase
9
{
10
    public function createLogFacadeMock(): LogFacade
11
    {
12
        return $this->getMockBuilder(LogFacade::class)
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getMockBui...cade::class)->getMock() returns the type PHPUnit\Framework\MockObject\MockObject which is incompatible with the type-hinted return ForecastAutomation\Log\LogFacade.
Loading history...
13
            ->getMock();
14
    }
15
}
16