杨总惠通宝
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.
 
 
 
 
 
 
htb_backend/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssExceptionTest.php

19 lines
409 B

<?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");
}
}
}