3 namespace PayPal\Test\Api;
6 use PayPal\Test\Constants;
8 class PayeeTest extends \PHPUnit_Framework_TestCase {
12 public static $email = "test@paypal.com";
13 public static $merchant_id = "1XY12121";
14 public static $phone = "+14081234566";
17 public static function createPayee() {
19 $payee->setEmail(self::$email);
20 $payee->setMerchantId(self::$merchant_id);
21 $payee->setPhone(self::$phone);
26 public function setup() {
27 $this->payee = self::createPayee();
30 public function testGetterSetter() {
31 $this->assertEquals(self::$email, $this->payee->getEmail());
32 $this->assertEquals(self::$merchant_id, $this->payee->getMerchantId());
33 $this->assertEquals(self::$phone, $this->payee->getPhone());
36 public function testSerializeDeserialize() {
40 $p2->fromJson($p1->toJson());
42 $this->assertEquals($p1, $p2);