get('as'); } public function testNotExistingGetCharacter() : void { self::expectException(\InvalidArgumentException::class); $dict = new Dictionary(); $dict->get('a'); } public function testInvalidSetCharacter() : void { self::expectException(\InvalidArgumentException::class); $dict = new Dictionary(); $dict->set('as', 'test'); } public function testInvalidSetDuplicateCharacter() : void { self::expectException(\InvalidArgumentException::class); $dict = new Dictionary(); $dict->set('a', '1'); $dict->set('a', '1'); } public function testInvalidFormattedValue() : void { self::expectException(\InvalidArgumentException::class); $dict = new Dictionary(); $dict->set('a', '1a'); } }