mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-10 14:03:30 +09:00
18 lines
466 B
PHP
18 lines
466 B
PHP
<?php
|
|
/**
|
|
* @group Core
|
|
*/
|
|
class Box_ExceptionTest extends PHPUnit\Framework\TestCase
|
|
{
|
|
|
|
public function testException()
|
|
{
|
|
$e = new Box_Exception('php :msg', array(':msg'=>'unit'), 789);
|
|
$this->assertEquals('php unit', $e->getMessage());
|
|
$this->assertEquals(789, $e->getCode());
|
|
|
|
$uri = 'client/manage';
|
|
$e = new Box_ExceptionAuth($uri);
|
|
$this->assertInstanceOf(Box_ExceptionAuth::class, $e);
|
|
}
|
|
} |