Failed Conditions
Push — master ( 01d6ae...9ca6d9 )
by Philippe
534:14 queued 469:10
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
namespace PhpSpellcheck\Tests\Exception;
6
7
use PhpSpellcheck\Exception\ProcessHasErrorOutputException;
8
use PHPUnit\Framework\TestCase;
9
10
class ProcessHasErrorOutputExceptionTest extends TestCase
11
{
12
    public function testException()
13
    {
14
        $exception = new ProcessHasErrorOutputException('error output', 'testt', 'ispell --encoding=utf-8 -a');
15
        $this->assertSame(<<<MESSAGE
16
Process has generated the following output errors:
17
18
error output
19
20
With command: "ispell --encoding=utf-8 -a"
21
22
For text:
23
"testt"
24
MESSAGE
25
            , $exception->getMessage());
26
    }
27
}
28