public function testSetLogger() { $this->assertSame($this->processor, $this->processor->setLogger($this->getMock('Psr\\Log\\LoggerInterface'))); }
/** * {@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; }