Test::unlink()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
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