ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullInterceptTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use PHPUnit\Framework\TestCase;
25use Exception;
26
27class 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}