Passed
Push — master ( b2b167...7e189a )
by Philippe
01:56
created

ProcessHasErrorOutputExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
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