15 require_once(
'./libs/composer/vendor/autoload.php');
36 $this->dataFactory =
new Factory();
37 $this->
language = $this->getMockBuilder(
'\ilLanguage')
38 ->disableOriginalConstructor()
41 $this->group =
new Group($this->dataFactory, $this->
language);
46 $instance = $this->group->hasMinLength(4);
47 $this->assertInstanceOf(HasMinLength::class, $instance);
52 $instance = $this->group->hasLowerChars();
53 $this->assertInstanceOf(HasLowerChars::class, $instance);
58 $instance = $this->group->hasNumbers();
59 $this->assertInstanceOf(HasNumbers::class, $instance);
64 $instance = $this->group->hasSpecialChars();
65 $this->assertInstanceOf(HasSpecialChars::class, $instance);
70 $instance = $this->group->hasUpperChars();
71 $this->assertInstanceOf(HasUpperChars::class, $instance);