logger = new Screen('default'); } /** * @test */ public function build() : void { $this->assertInstanceOf(Screen::class, $this->logger); $this->assertInstanceOf(Logger::class, $this->logger); $this->assertInstanceOf(LoggerInterface::class, $this->logger); } /** * @test */ public function log() : void { $this->expectOutputRegex('/\b(default.INFO: test)\b/'); $this->logger->log(LogLevel::INFO, 'test'); } }