/** * {@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); }
public function testSetTokenSeparator() { $context = new RouterContext(); $context->setTokenSeparator('/'); $this->assertEquals('/', $this->readProperty($context, 'tokenSeparator')); }