@@ -60,8 +60,8 @@ public function testRenderControllerReference()
6060 $ reference = new ControllerReference ('main_controller ' , [], []);
6161 $ altReference = new ControllerReference ('alt_controller ' , [], []);
6262
63- $ this ->assertEquals (
64- '<esi:include src="https://github.com/_fragment?_hash=Jz1P8NErmhKTeI6onI1EdAXTB85359MY3RIk5mSJ60w%3D &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dmain_controller" alt="/_fragment?_hash=iPJEdRoUpGrM1ztqByiorpfMPtiW%2FOWwdH1DBUXHhEc%3D &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dalt_controller" /> ' ,
63+ $ this ->assertMatchesRegularExpression (
64+ '#^ <esi:include src="https://github.com/_fragment\ ?_hash=.+ &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dmain_controller" alt="/_fragment\ ?_hash=.+ &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dalt_controller" />$# ' ,
6565 $ strategy ->render ($ reference , $ request , ['alt ' => $ altReference ])->getContent ()
6666 );
6767 }
@@ -78,8 +78,8 @@ public function testRenderControllerReferenceWithAbsoluteUri()
7878 $ reference = new ControllerReference ('main_controller ' , [], []);
7979 $ altReference = new ControllerReference ('alt_controller ' , [], []);
8080
81- $ this ->assertSame (
82- '<esi:include src="http://localhost/_fragment?_hash=Jz1P8NErmhKTeI6onI1EdAXTB85359MY3RIk5mSJ60w%3D &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dmain_controller" alt="http://localhost/_fragment?_hash=iPJEdRoUpGrM1ztqByiorpfMPtiW%2FOWwdH1DBUXHhEc%3D &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dalt_controller" /> ' ,
81+ $ this ->assertMatchesRegularExpression (
82+ '#^ <esi:include src="http://localhost/_fragment\ ?_hash=.+ &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dmain_controller" alt="http://localhost/_fragment\ ?_hash=.+ &_path=_format%3Dhtml%26_locale%3Dfr%26_controller%3Dalt_controller" />$# ' ,
8383 $ strategy ->render ($ reference , $ request , ['alt ' => $ altReference , 'absolute_uri ' => true ])->getContent ()
8484 );
8585 }
0 commit comments