Page MenuHomeDevCentral

OutputDisplayTest.php
No OneTemporary

OutputDisplayTest.php

<?php
declare(strict_types=1);
namespace Keruald\Commands\Tests\Display;
use Keruald\Commands\Display\OutputDisplay;
use PHPUnit\Framework\TestCase;
class OutputDisplayTest extends TestCase {
/**
* @var OutputDisplay
*/
private $display;
public function setUp () : void {
$this->display = new OutputDisplay;
}
public function testOut () : void {
$this->expectOutputString("Hello world!\n");
$this->display->out("Hello world!");
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436395
Default Alt Text
OutputDisplayTest.php (497 B)

Event Timeline