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

LogFactoryHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createLogFacadeMock() 0 4 1
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