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