示例#1
0
 public function testSetLogger()
 {
     $this->assertSame($this->processor, $this->processor->setLogger($this->getMock('Psr\\Log\\LoggerInterface')));
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 protected function handleTarget(TargetAdapterInterface $adapter, Request $request)
 {
     $this->dispatcher->dispatch(TransferEvents::PRE_ADAPTER_SEND, new Events\PreAdapterSendEvent($adapter, $request));
     $response = parent::handleTarget($adapter, $request);
     $this->dispatcher->dispatch(TransferEvents::POST_ADAPTER_SEND, new Events\PostAdapterSendEvent($adapter, $request, $response, 0.0));
     return $response;
 }