[HttpKernel] Fix assertion of deprecation in fragment renderer

This commit is contained in:
Robin Chalas 2016-08-27 14:44:09 +02:00
parent 224ebc0aff
commit 4245bacdd5
No known key found for this signature in database
GPG Key ID: 89672113756EE03B

View File

@ -32,7 +32,7 @@ class EsiFragmentRendererTest extends \PHPUnit_Framework_TestCase
*/
public function testRenderFallbackWithObjectAttributesIsDeprecated()
{
ErrorAssert::assertDeprecationsAreTriggered('Passing objects as part of URI attributes to the ESI and SSI rendering strategies is deprecated', function () {
ErrorAssert::assertDeprecationsAreTriggered('Passing non-scalar values as part of URI attributes to the ESI and SSI rendering strategies is deprecated', function () {
$strategy = new EsiFragmentRenderer(new Esi(), $this->getInlineStrategy(true), new UriSigner('foo'));
$request = Request::create('/');
$reference = new ControllerReference('main_controller', array('foo' => array('a' => array(), 'b' => new \stdClass())), array());