assertEquals( $expect, MWLoggerLegacyLogger::interpolate( $message, $context ) ); } public function provideInterpolate() { return array( array( 'no-op', array(), 'no-op', ), array( 'Hello {world}!', array( 'world' => 'World', ), 'Hello World!', ), array( '{greeting} {user}', array( 'greeting' => 'Goodnight', 'user' => 'Moon', ), 'Goodnight Moon', ), array( 'Oops {key_not_set}', array(), 'Oops {key_not_set}', ), array( '{ not interpolated }', array( 'not interpolated' => 'This should NOT show up in the message', ), '{ not interpolated }', ), ); } }