3 declare(strict_types=1);
    32         $g1 = $this->newObjective();
    33         $g2 = $this->newObjective();
    34         $g3 = $this->newObjective();
    38         $this->assertEquals([$g1, $g2, $g3], 
$c->getObjectives());
    43         $g1 = $this->newObjective();
    44         $g2 = $this->newObjective();
    45         $g3 = $this->newObjective();
    51         $this->assertIsString($c1->getHash());
    52         $this->assertIsString($c2->getHash());
    53         $this->assertIsString($c3->getHash());
    55         $this->assertEquals($c1->getHash(), $c1->getHash());
    56         $this->assertNotEquals($c1->getHash(), $c2->getHash());
    57         $this->assertEquals($c1->getHash(), $c3->getHash());
    63         $this->assertEquals(
"LABEL", 
$c->getLabel());
    70         $this->assertFalse($c1->isNotable());
    71         $this->assertTrue($c2->isNotable());
    76         $g1 = $this->newObjective();
    77         $g2 = $this->newObjective();
    78         $g3 = $this->newObjective();
    82         $env = $this->createMock(Setup\Environment::class);
    84         $pre = 
$c->getPreconditions($env);
    85         $this->assertEquals([$g1,$g2, $g3], $pre);
    91         $g1 = $this->newObjective();
    92         $g2 = $this->newObjective();
    93         $g3 = $this->newObjective();
    97         $env = $this->createMock(Setup\Environment::class);
    99         foreach ([$g1,$g2,$g3] as $g) {
   101                 ->expects($this->never())
   106         $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...