/**
  * @test
  */
 public function matchStripsOffSuffixIfSplitStringIsSpecified()
 {
     $mockContext = $this->buildMockContext(array('workspaceName' => 'live'));
     $mockContext->mockSite = $this->getMockBuilder(Site::class)->disableOriginalConstructor()->getMock();
     $mockContext->mockSiteNode = $this->buildSiteNode($mockContext, '/sites/examplecom');
     $mockSubNode = $this->buildSubNode($mockContext->mockSiteNode, 'home');
     $mockSubNode->mockProperties['uriPathSegment'] = 'home';
     $this->routePartHandler->setOptions(array('splitString' => '.'));
     $routePath = '*****@*****.**';
     $this->assertFalse($this->routePartHandler->match($routePath));
 }
 /**
  * @test
  */
 public function matchStripsOffSuffixIfSplitStringIsSpecified()
 {
     $mockContext = $this->buildMockContext(array('workspaceName' => 'live'));
     $mockContext->mockSite = $this->getMock('TYPO3\\TYPO3CR\\Domain\\Model\\Site', array(), array(), '', false);
     $mockContext->mockSiteNode = $this->buildSiteNode($mockContext, '/sites/examplecom');
     $mockSubNode = $this->buildSubNode($mockContext->mockSiteNode, 'home');
     $mockSubNode->mockProperties['uriPathSegment'] = 'home';
     $this->routePartHandler->setOptions(array('splitString' => '.'));
     $routePath = '*****@*****.**';
     $this->assertFalse($this->routePartHandler->match($routePath));
 }