Completed
Push — master ( dd1955...c3a87b )
by Michael
10s
created

testOutputNotInteractive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PhpSchool\TerminalTest\Exception;
4
5
use PhpSchool\Terminal\Exception\NotInteractiveTerminal;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * @author Aydin Hassan <[email protected]>
10
 */
11
class NotInteractiveTerminalTest extends TestCase
12
{
13
    public function testInputNotInteractive() : void
14
    {
15
        $e = NotInteractiveTerminal::inputNotInteractive();
16
17
        self::assertEquals('Input stream is not interactive (non TTY)', $e->getMessage());
18
    }
19
20
    public function testOutputNotInteractive() : void
21
    {
22
        $e = NotInteractiveTerminal::outputNotInteractive();
23
24
        self::assertEquals('Output stream is not interactive (non TTY)', $e->getMessage());
25
    }
26
}
27