Files
FOSSBilling/tests/bb-library/Box/ExceptionTest.php
T
2014-11-03 09:00:47 +02:00

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);
}
}