2022-02-20 21:22:07 +01:00
< ? php
/**
* Akeeba Engine
*
* @ package akeebaengine
2023-12-19 03:28:16 +01:00
* @ copyright Copyright ( c ) 2006 - 2023 Nicholas K . Dionysopoulos / Akeeba Ltd
2022-02-20 21:22:07 +01:00
* @ license GNU General Public License version 3 , or later
*/
namespace Akeeba\MiniTest\Test ;
2023-12-19 03:28:16 +01:00
use Akeeba\S3\Connector ;
2022-02-20 21:22:07 +01:00
class BucketLocation extends AbstractTest
{
public static function getBucketLocation ( Connector $s3 , array $options ) : bool
{
$location = $s3 -> getBucketLocation ( $options [ 'bucket' ]);
2023-12-19 03:28:16 +01:00
static :: assert ( $location === $options [ 'region' ], " Bucket ‘ { $options [ 'bucket' ] } ′ reports being in region ‘ { $location } ′ instead of expected ‘ { $options [ 'region' ] } ′ " );
2022-02-20 21:22:07 +01:00
return true ;
}
}