public function testGetSetPostUrl() { $this->assertNull($this->paymentGateway->getPostUrl()); $value = 'http://www.google.com'; $this->paymentGateway->setPostUrl($value); $this->assertEquals($value, $this->paymentGateway->getPostUrl()); $config = array('postUrl' => 'http://www.google.com'); $gateway = new PaymentGateway($config); $this->assertEquals($config['postUrl'], $gateway->getPostUrl()); }