public function testChainingAssembleWithRegex() { $chain = new Route\Chain(); $foo = new Route\Hostname('www.zend.com', array('foo' => 'foo')); $bar = new Route\Regex('bar', array('bar' => 'bar'), array(), 'bar'); $chain->addChain($foo)->addChain($bar); $request = new Request('http://www.zend.com/bar'); $res = $chain->match($request); $this->assertType('array', $res); $this->assertRegexp('#[^a-z0-9]?www\\.zend\\.com/bar$#i', $chain->assemble()); }