mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-12-09 21:45:48 -05:00
return type void is required as of PHPunit 7, breaking test compatibility with PHP < 7.1
This commit is contained in:
parent
6f90df9545
commit
37a620df95
15 changed files with 26 additions and 41 deletions
|
|
@ -19,7 +19,7 @@ class ModelTest extends TestCase
|
|||
|
||||
protected $_path;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
/* Setup Routine */
|
||||
$this->_path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'privatebin_data';
|
||||
|
|
@ -45,7 +45,7 @@ class ModelTest extends TestCase
|
|||
$_SERVER['REMOTE_ADDR'] = '::1';
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
/* Tear Down Routine */
|
||||
unlink(CONF);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue