ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
NullInterceptTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments\test\Intercept
;
22
23
use
ILIAS\LegalDocuments\Intercept\NullIntercept
;
24
use
PHPUnit\Framework\TestCase
;
25
use
Exception
;
26
27
class
NullInterceptTest
extends
TestCase
28
{
29
public
function
testConstruct
(): void
30
{
31
$this->assertInstanceOf(NullIntercept::class,
new
NullIntercept
());
32
}
33
34
public
function
testIntercept
(): void
35
{
36
$this->assertFalse((
new
NullIntercept
())->
intercept
());
37
}
38
39
public
function
testId
(): void
40
{
41
$this->expectException(Exception::class);
42
(
new
NullIntercept
())->
id
();
43
}
44
45
public
function
testTarget
(): void
46
{
47
$this->expectException(Exception::class);
48
(
new
NullIntercept
())->
target
();
49
}
50
}
ILIAS\LegalDocuments\test\Intercept\NullInterceptTest\testConstruct
testConstruct()
Definition:
NullInterceptTest.php:29
ILIAS\LegalDocuments\test\Intercept\NullInterceptTest\testIntercept
testIntercept()
Definition:
NullInterceptTest.php:34
NullIntercept
ILIAS\LegalDocuments\test\Intercept
Definition:
ConditionalInterceptTest.php:21
ILIAS\LegalDocuments\Intercept\target
target()
ILIAS\LegalDocuments\test\Intercept\NullInterceptTest\testId
testId()
Definition:
NullInterceptTest.php:39
ILIAS\LegalDocuments\Intercept\NullIntercept
Definition:
NullIntercept.php:27
ILIAS\LegalDocuments\Intercept\intercept
intercept()
ILIAS\LegalDocuments\test\Intercept\NullInterceptTest
Definition:
NullInterceptTest.php:27
ILIAS\LegalDocuments\test\Intercept\NullInterceptTest\testTarget
testTarget()
Definition:
NullInterceptTest.php:45
TestCase
Exception
components
ILIAS
LegalDocuments
tests
Intercept
NullInterceptTest.php
Generated on Mon Sep 1 2025 23:03:24 for ILIAS by
1.8.13 (using
Doxyfile
)