예제 #1
0
 /**
  * Version constructor.
  *
  * @param Frame $frame
  * @throws StompException
  */
 public function __construct(Frame $frame)
 {
     if ($frame->getCommand() != 'CONNECTED') {
         throw new UnexpectedResponseException($frame, sprintf('Expected a "CONNECTED" Frame to determine Version. Got a "%s" Frame!', $frame->getCommand()));
     }
     $this->frame = $frame;
 }
예제 #2
0
 protected function assertIsAbortFrame(Frame $frame)
 {
     $this->assertEquals('ABORT', $frame->getCommand(), 'Frame command is no "abort" command.');
 }