Deprecation: since 5.3 as it cannot be reverted.
Inheritance: extends eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex, implements eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher
 public function testSerialize()
 {
     $matcher = new RegexMatcher(array('regex' => '^/foo(\\w+)bar', 'itemNumber' => 2));
     $matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar')));
     $sa = new SiteAccess('test', 'test', $matcher);
     $serializedSA1 = serialize($sa);
     $matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar/baz')));
     $serializedSA2 = serialize($sa);
     $this->assertSame($serializedSA1, $serializedSA2);
 }
 public function testGetName()
 {
     $matcher = new RegexMatcher(array(), array());
     $this->assertSame('uri:regexp', $matcher->getName());
 }