context = new AccountContext(new IRI('aauid:aaaabbbbccccdddd'), 'DUMMY'); } public function testDefaultGatewayBaseURL() { $this->assertEquals('https://aaaabbbbccccdddd.aauid.net', $this->context->getClient()->getConfig('base_uri')); } public function testSetAccountGatewayBaseURLTemplateWithPlaceholder() { $this->context->setAccountGatewayBaseURLTemplate('http://{aauid}.localhost'); $this->assertEquals('http://aaaabbbbccccdddd.localhost', $this->context->getClient()->getConfig('base_uri')); } public function testSetAccountGatewayBaseURLTemplateWithoutPlaceholder() { $this->context->setAccountGatewayBaseURLTemplate('http://localhost'); $this->assertEquals('http://localhost', $this->context->getClient()->getConfig('base_uri')); } }