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

testGenericExceptionHandling()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
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