3declare(strict_types=1);
 
   43    protected function setUp(): void
 
   45        $this->dataFactory = 
new DataFactory();
 
   46        $this->
language = $this->getMockBuilder(ilLanguage::class)
 
   47            ->disableOriginalConstructor()
 
   50        $this->group = 
new LogicalGroup($this->dataFactory, $this->
language);
 
   53        $this->lessThanConstaint = 
new LessThan(5, $this->dataFactory, $this->
language);
 
   58        $instance = $this->group->logicalOr([$this->greaterThanConstraint, $this->lessThanConstaint]);
 
   59        $this->assertInstanceOf(LogicalOr::class, $instance);
 
   64        $instance = $this->group->not($this->greaterThanConstraint);
 
   65        $this->assertInstanceOf(Not::class, $instance);
 
   70        $instance = $this->group->parallel([$this->greaterThanConstraint, $this->lessThanConstaint]);
 
   71        $this->assertInstanceOf(Parallel::class, $instance);
 
   76        $instance = $this->group->sequential([$this->greaterThanConstraint, $this->lessThanConstaint]);
 
   77        $this->assertInstanceOf(Sequential::class, $instance);
 
Constraint $lessThanConstaint
 
Constraint $greaterThanConstraint
 
A constraint encodes some resrtictions on values.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...