@@ -406,17 +406,17 @@ protected function config($name) {
protectedfunctiongetDatabaseConnectionInfo(){
// If the test is run with argument dburl then use it.
$db_url=getenv('SIMPLETEST_DB');
if(!empty($db_url)){
if(empty($db_url)){
$this->markTestSkipped('There is no database connection so no tests can be run. You must provide a SIMPLETEST_DB environment variable to run PHPUnit based functional tests outside of run-tests.sh. See https://www.drupal.org/node/2116263#skipped-tests for more information.');
thrownew\InvalidArgumentException('There is no database connection so no tests can be run. You must provide a SIMPLETEST_DB environment variable, like "sqlite://localhost//tmp/test.sqlite", to run PHPUnit based functional tests outside of run-tests.sh.');