You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
vendor/oss-sdk/tests/OSS/Tests/OssExceptionTest.php
vendored
Executable file
19
vendor/oss-sdk/tests/OSS/Tests/OssExceptionTest.php
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
<?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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user