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