OssExceptionTest.php 428 B

12345678910111213141516171819
  1. <?php
  2. namespace OSS\Tests;
  3. use OSS\Core\OssException;
  4. class OssExceptionTest extends \PHPUnit_Framework_TestCase
  5. {
  6. public function testOSS_exception()
  7. {
  8. try {
  9. throw new OssException("ERR");
  10. $this->assertTrue(false);
  11. } catch (OssException $e) {
  12. $this->assertNotNull($e);
  13. $this->assertEquals($e->getMessage(), "ERR");
  14. }
  15. }
  16. }