From 1f95f57be9bfd4ea733fc25a8bd738f29c1e5bbc Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 7 Oct 2021 22:22:32 +0200 Subject: [PATCH] phpunit compatibility --- tst/Data/GoogleCloudStorageTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tst/Data/GoogleCloudStorageTest.php b/tst/Data/GoogleCloudStorageTest.php index 42402cf8..3df5719d 100644 --- a/tst/Data/GoogleCloudStorageTest.php +++ b/tst/Data/GoogleCloudStorageTest.php @@ -10,7 +10,7 @@ class GoogleCloudStorageTest extends TestCase private static $_client; private static $_bucket; - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { $httpClient = new Client(array('debug'=>false)); $handler = HttpHandlerFactory::build($httpClient); @@ -24,7 +24,7 @@ class GoogleCloudStorageTest extends TestCase self::$_bucket = self::$_client->createBucket($name); } - public function setUp() + public function setUp(): void { ini_set('error_log', stream_get_meta_data(tmpfile())['uri']); $this->_model = GoogleCloudStorage::getInstance(array( @@ -33,7 +33,7 @@ class GoogleCloudStorageTest extends TestCase )); } - public function tearDown() + public function tearDown(): void { foreach (self::$_bucket->objects() as $object) { $object->delete();