/** * @test * @group warnings */ public function objectInterpolation() { $object = new \stdClass(); $context = array('key' => '({{objectKey}})', 'objectKey' => $object); $expected = array('key' => '(<object>)', 'objectKey' => $object); $this->assertEquals($expected, $this->interpolator->interpolate($context)); $this->assertTriggeredError('Object interpolation: "objectKey"', E_USER_WARNING); }