WokerTask/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketInfoTest.php

21 lines
539 B
PHP
Raw Permalink Normal View History

2023-12-27 14:06:33 +08:00
<?php
namespace OSS\Tests;
use OSS\Core\OssException;
require_once __DIR__ . DIRECTORY_SEPARATOR . 'TestOssClientBase.php';
class OssClientBucketInfoTest extends TestOssClientBase
{
public function testBucketInfo()
{
try {
$info = $this->ossClient->getBucketInfo($this->bucket);
$this->assertEquals($this->bucket, $info->getName());
$this->assertEquals("Standard", $info->getStorageClass());
} catch (OssException $e) {
$this->assertTrue(false);
}
}
}