]> git.mxchange.org Git - friendica-addons.git/blobdiff - s3_storage/vendor/akeeba/s3/minitest/Test/SmallInlineFiles.php
[s3_storage] Bump version of akeeba/s3 to version 2.3.1
[friendica-addons.git] / s3_storage / vendor / akeeba / s3 / minitest / Test / SmallInlineFiles.php
index 5cb942e751bb7da7e089a7db50aca0f71933b77b..d648d1062791bea0709411050499e0d72a1b1b3e 100644 (file)
@@ -3,15 +3,14 @@
  * Akeeba Engine
  *
  * @package   akeebaengine
- * @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
+ * @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
  * @license   GNU General Public License version 3, or later
  */
 
 namespace Akeeba\MiniTest\Test;
 
-
-use Akeeba\Engine\Postproc\Connector\S3v4\Connector;
-use Akeeba\Engine\Postproc\Connector\S3v4\Input;
+use Akeeba\S3\Connector;
+use Akeeba\S3\Input;
 
 /**
  * Upload, download and delete small files (under 1MB) using a string source
@@ -27,7 +26,7 @@ class SmallInlineFiles extends SmallFiles
                $uri    = substr($uri, 0, $dotPos) . '.' . md5(microtime(false)) . substr($uri, $dotPos);
 
                // Create some random data to upload
-               $sourceData = self::getRandomData($size);
+               $sourceData = static::getRandomData($size);
 
                // Upload the data. Throws exception if it fails.
                $bucket = $options['bucket'];
@@ -39,15 +38,15 @@ class SmallInlineFiles extends SmallFiles
                $result = true;
 
                // Should I download the file and compare its contents with my random data?
-               if (self::$downloadAfter)
+               if (static::$downloadAfter)
                {
                        $downloadedData = $s3->getObject($bucket, $uri);
 
-                       $result = self::areStringsEqual($sourceData, $downloadedData);
+                       $result = static::areStringsEqual($sourceData, $downloadedData);
                }
 
                // Should I delete the remotely stored file?
-               if (self::$deleteRemote)
+               if (static::$deleteRemote)
                {
                        // Delete the remote file. Throws exception if it fails.
                        $s3->deleteObject($bucket, $uri);