Failed Conditions
Push — master ( 01d6ae...9ca6d9 )
by Philippe
534:14 queued 469:10
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 Method

Rating   Name   Duplication   Size   Complexity  
A testException() 0 14 1
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