SetRemovePathPrefixTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testWithTrue() 0 6 1
A testWithfalse() 0 6 1
A testWithPrefix() 0 6 1
1
<?php
2
3
namespace Steevanb\PhpBacktrace\Tests\DebugBacktrace;
4
5
use PHPUnit\Framework\TestCase;
6
7
class SetRemovePathPrefixTest extends TestCase
8
{
9
    public function testWithTrue()
10
    {
11
        \DebugBacktrace::setRemovePathPrefix(true);
12
13
        static::addToAssertionCount(1);
14
    }
15
16
    public function testWithfalse()
17
    {
18
        \DebugBacktrace::setRemovePathPrefix(true);
19
20
        static::addToAssertionCount(1);
21
    }
22
23
    public function testWithPrefix()
24
    {
25
        \DebugBacktrace::setRemovePathPrefix('/foo');
26
27
        static::addToAssertionCount(1);
28
    }
29
}
30