public function testSpecifyingLoggingThresholds()
 {
     $bridge = new MonologTimerBridge($this->monolog, array(1 => Logger::DEBUG, 2 => Logger::WARNING, '3.5' => Logger::ALERT));
     $this->monolog->expects($this->at(0))->method('addRecord')->with(Logger::DEBUG, 'fXmlRpc call took 0.1000000000s', array('xmlrpcMethod' => 'method', 'xmlrpcArguments' => array('arg1', 'arg2')));
     $this->monolog->expects($this->at(1))->method('addRecord')->with(Logger::DEBUG, 'fXmlRpc call took 1.1000000000s', array('xmlrpcMethod' => 'method', 'xmlrpcArguments' => array('arg1', 'arg2')));
     $this->monolog->expects($this->at(2))->method('addRecord')->with(Logger::WARNING, 'fXmlRpc call took 2.5000000000s', array('xmlrpcMethod' => 'method', 'xmlrpcArguments' => array('arg1', 'arg2')));
     $this->monolog->expects($this->at(3))->method('addRecord')->with(Logger::ALERT, 'fXmlRpc call took 3.5000000000s', array('xmlrpcMethod' => 'method', 'xmlrpcArguments' => array('arg1', 'arg2')));
     $this->monolog->expects($this->at(4))->method('addRecord')->with(Logger::ALERT, 'fXmlRpc call took 5.5000000000s', array('xmlrpcMethod' => 'method', 'xmlrpcArguments' => array('arg1', 'arg2')));
     $bridge->recordTiming(0.1, 'method', array('arg1', 'arg2'));
     $bridge->recordTiming(1.1, 'method', array('arg1', 'arg2'));
     $bridge->recordTiming(2.5, 'method', array('arg1', 'arg2'));
     $bridge->recordTiming(3.5, 'method', array('arg1', 'arg2'));
     $bridge->recordTiming(5.5, 'method', array('arg1', 'arg2'));
 }
 protected function withLogError()
 {
     $this->mockLogger->expects($this->once())->method('error')->withAnyParameters()->willReturn(true);
 }
 protected function setNoOpExpectation()
 {
     $this->logger->expects($this->never())->method(new \PHPUnit_Framework_Constraint_IsAnything());
 }