3 declare(strict_types=1);
36 $m1 =
new M(M::STABILITY_CONFIG, M::TYPE_BOOL,
true,
"desc1");
37 $m2 =
new M(M::STABILITY_CONFIG, M::TYPE_BOOL,
true,
"desc2");
39 $this->storage->store(
"m1", $m1);
40 $this->storage->store(
"m2", $m2);
47 $this->assertEquals($expected, $this->storage->get());
52 $m1 =
new M(M::STABILITY_CONFIG, M::TYPE_BOOL,
true,
"desc1");
53 $m2 =
new M(M::STABILITY_CONFIG, M::TYPE_BOOL,
true,
"desc2");
55 $this->storage->store(
"m1", $m1);
56 $this->storage->store(
"m1", $m2);
62 $this->assertEquals($expected, $this->storage->get());
67 $m1 =
new M(M::STABILITY_CONFIG, M::TYPE_BOOL,
true,
"desc1");
69 $this->storage->store(
"a.b.c", $m1);
79 $this->assertEquals($expected, $this->storage->get());
84 $this->storage->store(
"a",
new M(M::STABILITY_STABLE, M::TYPE_COUNTER, 0));
85 $this->storage->store(
"b.c",
new M(M::STABILITY_VOLATILE, M::TYPE_BOOL,
true));
91 "a" =>
new M(M::STABILITY_STABLE, M::TYPE_COUNTER, 0),
92 "b" =>
new M(M::STABILITY_MIXED, M::TYPE_COLLECTION, [
93 "c" =>
new M(M::STABILITY_VOLATILE, M::TYPE_BOOL,
true)
98 $this->assertEquals($expected, $this->storage->asMetric());
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...