ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
IgnoreTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
26 class IgnoreTest extends TestCase
27 {
28  public function testConstruct(): void
29  {
30  $ignore = new Ignore();
31  $this->assertInstanceOf(Ignore::class, $ignore);
32  }
33 
34  public function testValues(): void
35  {
36  $ignore = new Ignore('a', 'b', 'c');
37  $this->assertEquals(['!= a', '!= b', '!= c'], $ignore->values());
38  }
39 
40  public function testValuesWithNull(): void
41  {
42  $ignore = new Ignore('a', null, 'c');
43  $this->assertEquals(['!= a', 'IS NOT NULL', '!= c'], $ignore->values());
44  }
45 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null