/** * @expectedException OutOfBoundsException */ public function testGet() { $collection = new Collection(); $collection->set('foo', 'bar'); $this->assertEquals('bar', $collection->get('foo')); $collection->get('baz'); }
public function getReferenceTitle($reference) { return $this->titles->exists($reference) ? $this->titles->get($reference) : new Text(); }