Commit fa73ebcf authored by Carsten  Rose's avatar Carsten Rose
Browse files

fixed naming schemes.

parent 67c857ad
......@@ -14,7 +14,7 @@ use PHPUnit\Framework\TestCase;
abstract class AbstractDatabaseTest extends TestCase {
/**
* @var null
* @var \mysqli
*/
static protected $mysqli = null;
......@@ -37,13 +37,13 @@ abstract class AbstractDatabaseTest extends TestCase {
* @param $filename
* @param $ignoreError
*
* @throws Exception
* @throws \Exception
*/
protected function executeSQLFile($filename, $ignoreError) {
$sqlStatements = file_get_contents($filename);
if (!self::$mysqli->multi_query($sqlStatements) && !$ignoreError) {
throw new Exception("mysqli->multi_query() failed: " . AbstractDatabaseTest::$mysqli->error);
throw new \Exception("mysqli->multi_query() failed: " . AbstractDatabaseTest::$mysqli->error);
}
// discard all results
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment