return type void is required as of PHPunit 7, breaking test compatibility with PHP < 7.1

This commit is contained in:
El RIDO 2020-10-10 12:22:20 +02:00
parent 6f90df9545
commit 37a620df95
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
15 changed files with 26 additions and 41 deletions

View file

@ -17,14 +17,14 @@ class DatabaseTest extends TestCase
'opt' => array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION),
);
public function setUp()
public function setUp(): void
{
/* Setup Routine */
$this->_path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'privatebin_data';
$this->_model = Database::getInstance($this->_options);
}
public function tearDown()
public function tearDown(): void
{
/* Tear Down Routine */
if (is_dir($this->_path)) {