/** * @test */ public function infoTest() { $str = __FUNCTION__; $logger = $this->logger->info($str); $this->expectOutputRegex("/\\[INFO\\]: {$str}/"); $this->assertTrue($logger === $this->logger); }