public function testNonScalarReplaceValuesAreNotInterpolated() { $variables = [new Esendex_Sms_Model_Variable('totalsales', 'total_sales'), new Esendex_Sms_Model_Variable('numorders', 'number_of_orders')]; $container = new Varien_Object(); $container->setData(['total_sales' => new stdClass(), 'number_of_orders' => 100]); $msg = 'Cannot replace placeholder with a non-scalar value (Eg, String, Integer). Got: "stdClass"'; $this->logger->expects($this->once())->method('error')->with($msg); $message = 'Your store has made $TOTALSALES$ through $NUMORDERS$ orders'; $result = $this->interpolator->interpolate($message, $container, $variables); $expected = 'Your store has made through 100 orders'; $this->assertSame($expected, $result); }