<?php

/**
 * @mixin PHPUnit_Framework_TestCase
 */
class DatabaseCheckTest extends SapphireTest {
	public function testCheckReportsValidConnection() {
		$check = new DatabaseCheck();

		$expected = array(
			EnvironmentCheck::OK,
			'',
		);

		$this->assertEquals($expected, $check->check());
	}
}

<?php

/**
 * @mixin PHPUnit_Framework_TestCase
 */
class DatabaseCheckTest extends SapphireTest {
    protected $usesDatabase = true;

	public function testCheckReportsValidConnection() {
		$check = new DatabaseCheck();

		$expected = array(
			EnvironmentCheck::OK,
			'',
		);

		$this->assertEquals($expected, $check->check());
	}
}

Use test database in database check test
Use test database in database check test
