public function testCallGetExpressCheckoutDetails() { $this->curl->expects($this->once())->method('read')->will($this->returnValue("\r\n" . 'ACK=Success&SHIPTONAME=Ship%20To%20Name')); $this->model->callGetExpressCheckoutDetails(); $this->assertEquals('Ship To Name', $this->model->getExportedShippingAddress()->getData('firstname')); }