Passed
Pull Request — master (#26)
by Dominik
01:09
created

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 4 1
1
<?php
2
3
namespace ACFComposer\Tests;
4
5
use PHPUnit\Framework;
6
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
7
use Brain\Monkey;
8
9
class TestCase extends Framework\TestCase
10
{
11
    use MockeryPHPUnitIntegration;
12
13
    protected function setUp() : void
14
    {
15
        parent::setUp();
16
        Monkey\setUp();
0 ignored issues
show
Bug introduced by
The function setUp was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

16
        /** @scrutinizer ignore-call */ 
17
        Monkey\setUp();
Loading history...
17
    }
18
19
    protected function tearDown() : void
20
    {
21
        Monkey\tearDown();
0 ignored issues
show
Bug introduced by
The function tearDown was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

21
        /** @scrutinizer ignore-call */ 
22
        Monkey\tearDown();
Loading history...
22
        parent::tearDown();
23
    }
24
}
25