ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullInterceptTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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 }