예제 #1
0
 public function testCanSetResultAndDoesNotStopPropagation()
 {
     $command = $this->getMock('GuzzleHttp\\Command\\CommandInterface');
     $client = $this->getMock('GuzzleHttp\\Command\\ServiceClientInterface');
     $trans = new CommandTransaction($client, $command);
     $result = null;
     $event = new ProcessEvent($trans);
     $event->setResult('foo');
     $this->assertSame('foo', $event->getResult());
     $this->assertSame('foo', $trans->getResult());
     $this->assertFalse($event->isPropagationStopped());
 }