We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 337d57b commit 40b09d4Copy full SHA for 40b09d4
tests/FlysystemTestSuite.php
@@ -2,7 +2,6 @@
2
3
namespace PlatformCommunity\Flysystem\BunnyCDN\Tests;
4
5
-use Faker\Provider\File;
6
use GuzzleHttp\Psr7\Response;
7
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
8
use League\Flysystem\Config;
@@ -72,6 +71,12 @@ private static function bunnyCDNClient(): BunnyCDNClient
72
71
return static::$bunnyCDNClient;
73
}
74
+ if (isset($_SERVER['STORAGEZONE'], $_SERVER['APIKEY'])) {
75
+ static::$bunnyCDNClient = new BunnyCDNClient($_SERVER['STORAGEZONE'], $_SERVER['APIKEY']);
76
+
77
+ return static::$bunnyCDNClient;
78
+ }
79
80
$filesystem = new Filesystem(new InMemoryFilesystemAdapter());
81
82
$mock_client = Mockery::mock(new BunnyCDNClient(self::STORAGE_ZONE, 'api-key'));
0 commit comments