/**
* @test
*/
public function shouldReturnValueWhenInfinityLoopOccurs()
{
//given
$strSubstitutor = new RecursiveStrSubstitutor(array('URL' => '{{HOST}}', 'HOST' => '{{URL}}'), null, 10);
//when
$substituted = $strSubstitutor->replace('Best website: {{URL}}');
//then
$this->assertEquals('Best website: {{URL}}', $substituted);
}