BucketInfoTest.php 552 B

123456789101112131415161718192021
  1. <?php
  2. namespace OSS\Tests;
  3. use OSS\Model\BucketInfo;
  4. /**
  5. * Class BucketInfoTest
  6. * @package OSS\Tests
  7. */
  8. class BucketInfoTest extends \PHPUnit_Framework_TestCase
  9. {
  10. public function testConstruct()
  11. {
  12. $bucketInfo = new BucketInfo('cn-beijing', 'name', 'today');
  13. $this->assertNotNull($bucketInfo);
  14. $this->assertEquals('cn-beijing', $bucketInfo->getLocation());
  15. $this->assertEquals('name', $bucketInfo->getName());
  16. $this->assertEquals('today', $bucketInfo->getCreateDate());
  17. }
  18. }