Passed
Push — master ( 141848...a80b50 )
by Philippe
06:19
created

testException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
nc 1
nop 0
dl 0
loc 14
rs 9.8666
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
use PhpSpellcheck\Exception\ProcessHasErrorOutputException;
6
use PHPUnit\Framework\TestCase;
7
8
class ProcessHasErrorOutputExceptionTest extends TestCase
9
{
10
    public function testException(): void
11
    {
12
        $exception = new ProcessHasErrorOutputException('error output', 'testt', 'ispell --encoding=utf-8 -a');
13
        $this->assertSame(<<<MESSAGE
14
Process has generated the following output errors:
15
16
error output
17
18
With command: "ispell --encoding=utf-8 -a"
19
20
For text:
21
"testt"
22
MESSAGE
23
            , $exception->getMessage());
24
    }
25
}
26