예제 #1
0
 public function testRabbitMQ()
 {
     $check = new RabbitMQ();
     $result = $check->check();
     $this->assertInstanceOf('ZendDiagnostics\\Result\\Success', $result);
     $check = new RabbitMQ('127.0.0.250', 9999);
     $this->setExpectedException('PhpAmqpLib\\Exception\\AMQPRuntimeException');
     $check->check();
 }