19declare(strict_types=1);
23require_once(__DIR__ .
"/../Helper.php");
28use PHPUnit\Framework\TestCase;
40 $this->env = $environment;
44 public const NAME =
"CALL MY METHOD!";
48 $this->p = $this->newObjective();
60 $this->assertIsString($this->o->getHash());
65 $this->assertEquals(self::NAME, $this->o->getLabel());
70 $this->assertFalse($this->o->isNotable());
75 $env = $this->createMock(
Setup\Environment::class);
77 $pre = $this->o->getPreconditions(
$env);
78 $this->assertEquals([$this->p], $pre);
86 $env = $this->createMock(
Setup\Environment::class);
90 $this->assertSame($this->env,
$env);
A callable objective wraps a callable into an objective.
Objective CallableObjective $o
myMethod(Setup\Environment $environment)
An environment holds resources to be used in the setup process.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...