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