public function testAddPrefix()
 {
     $candidates = new PrefixCandidates(array('/routes'));
     $this->assertEquals(array('/routes'), $candidates->getPrefixes());
     $candidates->addPrefix('/simple');
     $this->assertEquals(array('/routes', '/simple'), $candidates->getPrefixes());
     $candidates->setPrefixes(array('/other'));
     $this->assertEquals(array('/other'), $candidates->getPrefixes());
 }
Ejemplo n.º 2
0
 /**
  * @return array
  */
 protected function getPrefixes()
 {
     return $this->candidates->getPrefixes();
 }