0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-21 20:56:08 +00:00
salesagility_SuiteCRM/tests/unit/phpunit/lib/Exception/ExceptionTest.php
Dillon-Brown 752484d5b8 Merge remote-tracking branch 'upstream/hotfix-7.10.x' into feature/swagger
# Conflicts:
#	tests/unit/phpunit/lib/Exception/ExceptionTest.php
2019-11-22 11:55:35 +00:00

38 lines
796 B
PHP

<?php
namespace SuiteCRM\Exception;
use Psr\Log\LogLevel;
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
class ExceptionTest extends SuitePHPUnitFrameworkTestCase
{
/**#
* @var Exception $exception
*/
private static $exception;
public function setUp()
{
parent::setUp();
if (self::$exception === null) {
self::$exception = new Exception();
}
}
public function testGetDetail()
{
$this->assertEquals(
'SuiteCRM has encountered an exception which has not been handled',
self::$exception->getDetail()
);
}
public function testGetLogLevel()
{
$this->assertEquals(
LogLevel::CRITICAL,
self::$exception->getLogLevel()
);
}
}