30 require_once
'./vendor/composer/vendor/autoload.php';
37 #[BackupGlobals(false)] 38 #[BackupStaticProperties(false)] 39 #[PreserveGlobalState(false)] 40 #[RunTestsInSeparateProcesses] 61 $this->subject->put($key, $value);
62 $result = $this->subject->toArray();
64 $this->assertArrayHasKey($key, $result);
65 $this->assertEquals($value, $result[$key]);
74 $this->subject->put($key, $value);
76 $this->expectException(ElementAlreadyExistsException::class);
77 $this->expectExceptionMessage(
"Element $key can not be overwritten.");
79 $this->subject->put($key, $value);
88 $this->subject->put($key, $value);
89 $result = $this->subject->get($key);
91 $this->assertEquals($value, $result);
99 $this->expectException(NoSuchElementException::class);
100 $this->expectExceptionMessage(
"No meta data associated with key \"$key\".");
101 $this->subject->get($key);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class EntryLockingStringMap.
testPutValueTwiceWhichShouldFail()
Class EntryLockingStringMapTest.
EntryLockingStringMap $subject
testGetWhichShouldSucceed()
testPutValueWhichShouldSucceed()
testGetWithoutPutTheValueWhichShouldFail()