PayPal\Test\Api\InstallmentOptionTest::getObject PHP Method

getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : InstallmentOption
return PayPal\Api\InstallmentOption
    public static function getObject()
    {
        return new InstallmentOption(self::getJson());
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param InstallmentInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getInstallmentId(), "TestSample");
     $this->assertEquals($obj->getNetwork(), "TestSample");
     $this->assertEquals($obj->getIssuer(), "TestSample");
     $this->assertEquals($obj->getInstallmentOptions(), InstallmentOptionTest::getObject());
 }