Test   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A unlink() 0 6 2
1
<?php
2
3
namespace AsyncPHP\Doorman\Tests;
4
5
use PHPUnit_Framework_TestCase;
6
7
abstract class Test extends PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * Safely deletes a file.
11
     *
12
     * @param string $file
13
     */
14
    protected function unlink($file)
15
    {
16
        if (file_exists($file)) {
17
            unlink($file);
18
        }
19
    }
20
}
21