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

22 lines
531 B
PHP
Raw Normal View History

2023-12-27 14:06:33 +08:00
<?php
namespace OSS\Tests;
use OSS\Model\BucketInfo;
/**
* Class BucketInfoTest
* @package OSS\Tests
*/
class BucketInfoTest extends \PHPUnit\Framework\TestCase
{
public function testConstruct()
{
$bucketInfo = new BucketInfo('cn-beijing', 'name', 'today');
$this->assertNotNull($bucketInfo);
$this->assertEquals('cn-beijing', $bucketInfo->getLocation());
$this->assertEquals('name', $bucketInfo->getName());
$this->assertEquals('today', $bucketInfo->getCreateDate());
}
}