/** * @expectedException OutOfBoundsException */ public function testGet() { $collection = new Collection(); $collection->set('foo', 'bar'); $this->assertEquals('bar', $collection->get('foo')); $collection->get('baz'); }
/** * @param ExtensionInterface $extension * * @return Ciconia */ public function addExtension(ExtensionInterface $extension) { $this->extensions->set($extension->getName(), $extension); return $this; }