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