for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpSchool\TerminalTest\Exception;
use PhpSchool\Terminal\Exception\NotInteractiveTerminal;
use PHPUnit\Framework\TestCase;
/**
* @author Aydin Hassan <[email protected]>
*/
class NotInteractiveTerminalTest extends TestCase
{
public function testInputNotInteractive() : void
$e = NotInteractiveTerminal::inputNotInteractive();
self::assertEquals('Input stream is not interactive (non TTY)', $e->getMessage());
}
public function testOutputNotInteractive() : void
$e = NotInteractiveTerminal::outputNotInteractive();
self::assertEquals('Output stream is not interactive (non TTY)', $e->getMessage());