phpunit compatibility

This commit is contained in:
El RIDO 2021-10-07 22:24:30 +02:00
parent 1f95f57be9
commit 1f6b962468
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -14,7 +14,7 @@ class ControllerWithGcsTest extends ControllerTest
private static $_bucket; private static $_bucket;
private $_options = array(); private $_options = array();
public static function setUpBeforeClass() public static function setUpBeforeClass(): void
{ {
$httpClient = new Client(array('debug'=>false)); $httpClient = new Client(array('debug'=>false));
$handler = HttpHandlerFactory::build($httpClient); $handler = HttpHandlerFactory::build($httpClient);
@ -28,7 +28,7 @@ class ControllerWithGcsTest extends ControllerTest
self::$_bucket = self::$_client->createBucket($name); self::$_bucket = self::$_client->createBucket($name);
} }
public function setUp() public function setUp(): void
{ {
/* Setup Routine */ /* Setup Routine */
$this->_path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'privatebin_data'; $this->_path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'privatebin_data';