File: skipif.inc

package info (click to toggle)
php-stomp 2.0.2%2B1.0.9-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 568 kB
  • sloc: ansic: 3,350; xml: 820; php: 119; makefile: 1
file content (14 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
include __DIR__ . "/config.inc";

if (!extension_loaded("stomp")) {
	print "skip"; 
}
if (isset($require_connection) && $require_connection) {
    $stomp = stomp_connect(STOMP_ADDRESS);
	if ($stomp === FALSE) {
		printf("skip cannot connect to server '%s'", stomp_connect_error());
		exit;
	}
}
?>