diff --git a/tests/DatabaseTest.php b/tests/DatabaseTest.php index 88cc2d84b..9844699b0 100644 --- a/tests/DatabaseTest.php +++ b/tests/DatabaseTest.php @@ -32,6 +32,10 @@ abstract class DatabaseTest extends TestCase */ protected function getConnection() { + if (!getenv('MYSQL_DATABASE')) { + $this->markTestSkipped('Please set the MYSQL_* environment variables to your test database credentials.'); + } + if (!DBA::connected()) { $this->markTestSkipped('Could not connect to the database.'); }