mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 10:18:39 +00:00
32 lines
686 B
PHP
32 lines
686 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\System\File;
|
|
|
|
use phpOMS\System\File\PermissionException;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class PermissionExceptionTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testConstructor() : void
|
|
{
|
|
$e = new PermissionException('test.file');
|
|
self::assertStringContainsString('test.file', $e->getMessage());
|
|
self::assertEquals(0, $e->getCode());
|
|
$this->isInstanceOf('\RuntimeException');
|
|
}
|
|
}
|