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