Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function match($channel, $tokenSeparator = null)
 {
     $this->matcher->setCollection($this->collection);
     if (null === $tokenSeparator && null !== $this->context) {
         $tokenSeparator = $this->context->getTokenSeparator();
     }
     return $this->matcher->match($channel, $tokenSeparator);
 }
Ejemplo n.º 2
0
 public function testSetTokenSeparator()
 {
     $context = new RouterContext();
     $context->setTokenSeparator('/');
     $this->assertEquals('/', $this->readProperty($context, 'tokenSeparator'));
 }