Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnexpectedOutputPrinter.php

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\Default
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal