public function warning($message, $params = null);
/** * @test */ public function shouldWriteWarningMessage() { //when $this->logger->warning('My warning log line without params.'); //then $logContent = $this->_readStreamContent('test://stdout'); Assert::thatString($logContent)->contains('2014-01-01 11:11:11: TEST Warning: [ID: ] My warning log line without params.'); }