Completed
Push — master ( d38252...509746 )
by Harry
03:13
created

ConfigValidationFailedExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGenericExceptionHandling() 0 15 1
1
<?php
2
3
namespace Graze\ConfigValidation\Test\Unit\Exceptions;
4
5
use Exception;
6
use Graze\ConfigValidation\Exceptions\ConfigValidationFailedException;
7
use Graze\ConfigValidation\Test\TestCase;
8
9
class ConfigValidationFailedExceptionTest extends TestCase
10
{
11
    public function testGenericExceptionHandling()
12
    {
13
        $orig = new Exception('test ');
14
15
        $exception = new ConfigValidationFailedException(__CLASS__, 'message', $orig);
16
17
        $this->assertEquals(
18
            <<<TEXT
19
Processor 'Graze\ConfigValidation\Test\Unit\Exceptions\ConfigValidationFailedExceptionTest' failed validation. Check params and options
20
test message
21
TEXT
22
            ,
0 ignored issues
show
Coding Style introduced by
Space found before comma in function call
Loading history...
23
            $exception->getMessage()
24
        );
25
    }
26
}
27