示例#1
0
 public function setup()
 {
     // Set up a bunch of conditions to create an acceptable test connection here
     if (class_exists('\\MongoDB\\Client')) {
         static::$canbetested = true;
     }
     parent::setup();
 }
示例#2
0
 public function setup()
 {
     // Set up a bunch of conditions to create an acceptable test connection here
     if (function_exists('mysql_connect')) {
         static::$canbetested = true;
     }
     parent::setup();
 }
示例#3
0
 public function setup()
 {
     // Set up a bunch of conditions to create an acceptable test connection here
     $location = 'http://www.google.com';
     if (file_get_contents($location)) {
         static::$canbetested = true;
         static::$configuration['location'] = 'http://www.google.com';
     }
     parent::setup();
 }
示例#4
0
 public function setup()
 {
     // Set up a bunch of conditions to create an acceptable test connection here
     parent::setup();
 }