assertNotNull($obj); $this->assertNotNull($obj->getLandingPageType()); $this->assertNotNull($obj->getBankTxnPendingUrl()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param FlowConfig $obj */ public function testGetters($obj) { $this->assertEquals($obj->getLandingPageType(), "TestSample"); $this->assertEquals($obj->getBankTxnPendingUrl(), "http://www.google.com"); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage BankTxnPendingUrl is not a fully qualified URL */ public function testUrlValidationForBankTxnPendingUrl() { $obj = new FlowConfig(); $obj->setBankTxnPendingUrl(null); } }