16 require_once(
'./libs/composer/vendor/autoload.php');
47 $this->dataFactory =
new Factory();
48 $this->
language = $this->getMockBuilder(
'\ilLanguage')
49 ->disableOriginalConstructor()
52 $this->group =
new Group($this->dataFactory, $this->
language);
55 $this->lessThanConstaint =
new LessThan(5, $this->dataFactory, $this->
language);
60 $instance = $this->group->logicalOr(array($this->greaterThanConstraint, $this->lessThanConstaint));
61 $this->assertInstanceOf(LogicalOr::class, $instance);
66 $instance = $this->group->not($this->greaterThanConstraint);
67 $this->assertInstanceOf(Not::class, $instance);
72 $instance = $this->group->parallel(array($this->greaterThanConstraint, $this->lessThanConstaint));
73 $this->assertInstanceOf(Parallel::class, $instance);
78 $instance = $this->group->sequential(array($this->greaterThanConstraint, $this->lessThanConstaint));
79 $this->assertInstanceOf(Sequential::class, $instance);