mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
18 lines
461 B
PHP
18 lines
461 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', $e);
|
|
}
|
|
} |