/** * 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; }
protected function assertIsAbortFrame(Frame $frame) { $this->assertEquals('ABORT', $frame->getCommand(), 'Frame command is no "abort" command.'); }