public function testToArray() { $conversion = new CMService_AdWords_Conversion(); $this->assertSame([], $conversion->toArray()); $conversion->setColor('666666'); $conversion->setConversionCurrency('USD'); $conversion->setConversionValue(123); $conversion->setCustomParameterList(['a' => 1, 'b' => 2]); $conversion->setFormat('1'); $conversion->setId(123456); $conversion->setLabel('label'); $conversion->setLanguage('en'); $conversion->setRemarketingOnly(true); $this->assertSame(['google_conversion_id' => 123456, 'google_conversion_language' => 'en', 'google_conversion_format' => '1', 'google_conversion_color' => '666666', 'google_conversion_label' => 'label', 'google_remarketing_only' => true, 'google_conversion_value' => 123.0, 'google_conversion_currency' => 'USD', 'google_custom_params' => ['a' => 1, 'b' => 2]], $conversion->toArray()); }