You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
531 B
22 lines
531 B
11 months ago
|
<?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());
|
||
|
}
|
||
|
}
|