9 require_once
'./vendor/composer/vendor/autoload.php';
43 $this->subject->put($key, $value);
44 $result = $this->subject->toArray();
46 $this->assertArrayHasKey($key, $result);
47 $this->assertEquals($value, $result[$key]);
58 $this->subject->put($key, $value);
60 $this->expectException(ElementAlreadyExistsException::class);
61 $this->expectExceptionMessage(
"Element $key can not be overwritten.");
63 $this->subject->put($key, $value);
74 $this->subject->put($key, $value);
75 $result = $this->subject->get($key);
77 $this->assertEquals($value, $result);
87 $this->expectException(NoSuchElementException::class);
88 $this->expectExceptionMessage(
"No meta data associated with key \"$key\".");
89 $this->subject->get($key);
Class EntryLockingStringMap.
testPutValueTwiceWhichShouldFail()
Class EntryLockingStringMapTest.
testGetWhichShouldSucceed()
testPutValueWhichShouldSucceed()
testGetWithoutPutTheValueWhichShouldFail()