Passed
Push — master ( 078b04...f28aa5 )
by Mike
03:11
created

FacadeTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSomeMethod() 0 2 1
A _before() 0 3 1
1
<?php
2
namespace XerviceTest\Twig;
3
4
use Xervice\Core\Locator\Locator;
5
6
class FacadeTest extends \Codeception\Test\Unit
7
{
8
    /**
9
     * @var \Xervice\Twig\TwigFacade
10
     */
11
    protected $facade;
12
    
13
    protected function _before()
14
    {
15
        $this->facade = Locator::getInstance()->twig()->facade();
0 ignored issues
show
Documentation Bug introduced by
It seems like Xervice\Core\Locator\Loc...nce()->twig()->facade() of type Xervice\Core\Facade\EmptyFacade is incompatible with the declared type Xervice\Twig\TwigFacade of property $facade.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
16
    }
17
18
    /**
19
     * @group Xervice
20
     * @group Twig
21
     * @group Facade
22
     * @group Integration
23
     */
24
    public function testSomeMethod()
25
    {
26
        // todo
27
    }
28
}