/**
  * Should give the given string
  * if given location is in the current location.
  */
 public function testPutIfIs()
 {
     $currentRouteName = $this->generator()->anyString();
     $this->router->shouldReceive('currentRouteName')->andReturn($currentRouteName);
     $givenString = $this->anyStringWithoutDots();
     $this->assertSame($givenString, $this->locationComposer->putIfIs($givenString, $currentRouteName));
     $notCurrentRoute = $this->generator()->anyStringOtherThan($currentRouteName);
     $this->assertSame('', $this->locationComposer->putIfIs($givenString, $notCurrentRoute));
 }