3 declare(strict_types=1);
    23 require_once(__DIR__ . 
"/Helper.php");
    34         $g1 = $this->newObjective();
    35         $g2 = $this->newObjective();
    36         $g3 = $this->newObjective();
    40         $this->assertEquals([$g1, $g2, $g3], 
$c->getObjectives());
    45         $g1 = $this->newObjective();
    46         $g2 = $this->newObjective();
    47         $g3 = $this->newObjective();
    53         $this->assertIsString($c1->getHash());
    54         $this->assertIsString($c2->getHash());
    55         $this->assertIsString($c3->getHash());
    57         $this->assertEquals($c1->getHash(), $c1->getHash());
    58         $this->assertNotEquals($c1->getHash(), $c2->getHash());
    59         $this->assertEquals($c1->getHash(), $c3->getHash());
    65         $this->assertEquals(
"LABEL", 
$c->getLabel());
    72         $this->assertFalse($c1->isNotable());
    73         $this->assertTrue($c2->isNotable());
    78         $g1 = $this->newObjective();
    79         $g2 = $this->newObjective();
    80         $g3 = $this->newObjective();
    84         $env = $this->createMock(
Setup\Environment::class);
    86         $pre = 
$c->getPreconditions($env);
    87         $this->assertEquals([$g1,$g2, $g3], $pre);
    93         $g1 = $this->newObjective();
    94         $g2 = $this->newObjective();
    95         $g3 = $this->newObjective();
    99         $env = $this->createMock(
Setup\Environment::class);
   101         foreach ([$g1,$g2,$g3] as $g) {
   103                 ->expects($this->never())
   108         $this->assertSame($env, 
$res);
 A objective collection is a objective that is achieved once all subobjectives are achieved...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...