suyuan-breed/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssExceptionTest.php

20 lines
409 B
PHP
Raw Normal View History

2024-01-09 15:59:23 +08:00
<?php
namespace OSS\Tests;
use OSS\Core\OssException;
class OssExceptionTest extends \PHPUnit\Framework\TestCase
{
public function testOSS_exception()
{
try {
throw new OssException("ERR");
$this->assertTrue(false);
} catch (OssException $e) {
$this->assertNotNull($e);
$this->assertEquals($e->getMessage(), "ERR");
}
}
}