class UnexpectedOutputPrinter
Hierarchy
- class \PHPUnit\TextUI\Output\Default\UnexpectedOutputPrinter implements \PHPUnit\Event\Test\PrintedUnexpectedOutputSubscriber
Expanded class hierarchy of UnexpectedOutputPrinter
1 file declares its use of UnexpectedOutputPrinter
- Facade.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Facade.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Default/ UnexpectedOutputPrinter.php, line 19
Namespace
PHPUnit\TextUI\Output\DefaultView source
final class UnexpectedOutputPrinter implements PrintedUnexpectedOutputSubscriber {
private readonly Printer $printer;
/**
* @throws EventFacadeIsSealedException
* @throws UnknownSubscriberTypeException
*/
public function __construct(Printer $printer, Facade $facade) {
$this->printer = $printer;
$facade->registerSubscriber($this);
}
public function notify(PrintedUnexpectedOutput $event) : void {
$this->printer
->print($event->output());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
UnexpectedOutputPrinter::$printer | private | property | ||
UnexpectedOutputPrinter::notify | public | function | Overrides PrintedUnexpectedOutputSubscriber::notify | |
UnexpectedOutputPrinter::__construct | public | function |