X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FTest.php;h=51d929054daba3313c9292e58342d8456100655c;hb=d1d2bcec61c334aa62e388af0a8f1dc499c4fc3b;hp=e70f0f40262f558e912b472ddbc5a1673370fe6c;hpb=33a5af51060efaca1634c2a87bcbebfe6d8cf7de;p=civicrm-core.git diff --git a/Civi/Test.php b/Civi/Test.php index e70f0f4026..51d929054d 100644 --- a/Civi/Test.php +++ b/Civi/Test.php @@ -14,7 +14,7 @@ class Test { /** * @var array */ - private static $singletons = array(); + private static $singletons = []; /** * Get the data source used for testing. @@ -45,7 +45,7 @@ class Test { /** * Get a connection to the test database. * - * @return PDO + * @return \PDO */ public static function pdo() { if (!isset(self::$singletons['pdo'])) { @@ -55,7 +55,7 @@ class Test { try { self::$singletons['pdo'] = new PDO("mysql:host={$host}" . ($port ? ";port=$port" : ""), $dsninfo['username'], $dsninfo['password'], - array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => TRUE) + [PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => TRUE] ); } catch (PDOException $e) { @@ -127,7 +127,6 @@ class Test { return self::$singletons['schema']; } - /** * @return \Civi\Test\Data */