コード例 #1
0
ファイル: ProcessorTest.php プロジェクト: valisj/transfer
 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;
 }