Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 4
0
 public function setup()
 {
     // Set up a bunch of conditions to create an acceptable test connection here
     parent::setup();
 }