Example #1
0
 /**
  * RabbitMq Test Client
  *
  * @return Client
  */
 public static function getClient()
 {
     $client = new Client(new Connection('tcp://127.0.0.1:61030'));
     $client->setLogin('guest', 'guest');
     $client->setVhostname('/');
     return $client;
 }
Example #2
0
 /**
  * ApolloMq Test Client
  *
  * @return Client
  */
 public static function getClient()
 {
     $client = new Client(new Connection('tcp://127.0.0.1:61020'));
     $client->setLogin('admin', 'password');
     return $client;
 }
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->Stomp = new Client('failover://(tcp://localhost:61614,tcp://localhost:61613,tcp://localhost:61020)?randomize=false');
     $this->Stomp->setLogin('admin', 'password');
 }