2 use PayPal\Auth\Openid\PPOpenIdAddress;
4 * Test class for PPOpenIdAddress.
7 class PPOpenIdAddressTest extends \PHPUnit_Framework_TestCase {
12 * Sets up the fixture, for example, opens a network connection.
13 * This method is called before a test is executed.
15 protected function setUp() {
16 $this->addr = new PPOpenIdAddress();
17 $this->addr->setCountry("US")->setLocality("San Jose")
18 ->setPostalCode("95112")->setRegion("CA")
19 ->setStreetAddress("1, North 1'st street");
23 * Tears down the fixture, for example, closes a network connection.
24 * This method is called after a test is executed.
26 protected function tearDown()
33 public function testSerializationDeserialization() {
34 $addrCopy = new PPOpenIdAddress();
35 $addrCopy->fromJson($this->addr->toJson());
37 $this->assertEquals($this->addr, $addrCopy);