Passed
Push — master ( 61f9d3...13d852 )
by mon
01:42
created

Phpunit4CompatibilityTrait::tearDown()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace FileEye\MimeMap\Test;
4
5
// PHPUnit compatibility trait for PHPUnit 4.
6
trait Phpunit4CompatibilityTrait
7
{
8
    public function setUp()
9
    {
10
        parent::setUp();
11
        if (method_exists($this, 'fcSetUp')) {
12
            $this->fcSetUp();
13
        }
14
    }
15
16
    public function tearDown()
17
    {
18
        if (method_exists($this, 'fcTearDown')) {
19
            $this->fcTearDown();
20
        }
21
        parent::tearDown();
22
    }
23
}
24