Exemplo n.º 1
0
 /**
  * Test case for oePayPalCaller::log()
  */
 public function testLog_setLogger_LoggerUsed()
 {
     $oLogger = $oCurl = $this->getMock('oePayPalLogger', array('log'));
     $oLogger->expects($this->once())->method('log')->with($this->equalTo('logMassage'));
     $oCaller = new oePayPalCaller();
     $oCaller->setLogger($oLogger);
     $oCaller->log('logMassage');
 }