3 declare(strict_types=1);
    38         $m1 = 
new M(M::STABILITY_CONFIG, M::TYPE_BOOL, 
true, 
"desc1");
    39         $m2 = 
new M(M::STABILITY_CONFIG, M::TYPE_BOOL, 
true, 
"desc2");
    41         $this->storage->store(
"m1", $m1);
    42         $this->storage->store(
"m2", $m2);
    49         $this->assertEquals($expected, $this->storage->get());
    54         $m1 = 
new M(M::STABILITY_CONFIG, M::TYPE_BOOL, 
true, 
"desc1");
    55         $m2 = 
new M(M::STABILITY_CONFIG, M::TYPE_BOOL, 
true, 
"desc2");
    57         $this->storage->store(
"m1", $m1);
    58         $this->storage->store(
"m1", $m2);
    64         $this->assertEquals($expected, $this->storage->get());
    69         $m1 = 
new M(M::STABILITY_CONFIG, M::TYPE_BOOL, 
true, 
"desc1");
    71         $this->storage->store(
"a.b.c", $m1);
    81         $this->assertEquals($expected, $this->storage->get());
    86         $this->storage->store(
"a", 
new M(M::STABILITY_STABLE, M::TYPE_COUNTER, 0));
    87         $this->storage->store(
"b.c", 
new M(M::STABILITY_VOLATILE, M::TYPE_BOOL, 
true));
    93                 "a" => 
new M(M::STABILITY_STABLE, M::TYPE_COUNTER, 0),
    94                 "b" => 
new M(M::STABILITY_MIXED, M::TYPE_COLLECTION, [
    95                     "c" => 
new M(M::STABILITY_VOLATILE, M::TYPE_BOOL, 
true)
   100         $this->assertEquals($expected, $this->storage->asMetric());
 Metrics ArrayStorage $storage
 
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...