/** * @test */ public function xmlSerializeMustAppendShippingData() { $this->markTestSkipped(); $xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?><test />'); $address = $this->getMock('PHPSC\\PagSeguro\\Customer\\Address', [], [], '', false); $shipping = new Shipping(Type::TYPE_PAC, $address, '10.31'); $address->expects($this->once())->method('xmlSerialize')->with($this->isInstanceOf('SimpleXMLElement')); $shipping->xmlSerialize($xml); $this->assertEquals(1, (string) $xml->shipping->type); $this->assertEquals(10.31, (string) $xml->shipping->cost); }