testInputNotInteractive()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
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