mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-09-19 06:05:13 +00:00
25 lines
No EOL
642 B
PHP
25 lines
No EOL
642 B
PHP
<?php
|
||
/**
|
||
* Akeeba Engine
|
||
*
|
||
* @package akeebaengine
|
||
* @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\S3\Connector;
|
||
|
||
class BucketLocation extends AbstractTest
|
||
{
|
||
public static function getBucketLocation(Connector $s3, array $options): bool
|
||
{
|
||
$location = $s3->getBucketLocation($options['bucket']);
|
||
|
||
static::assert($location === $options['region'], "Bucket ‘{$options['bucket']}′ reports being in region ‘{$location}′ instead of expected ‘{$options['region']}′");
|
||
|
||
return true;
|
||
}
|
||
} |