public function setUp() { parent::setUp(); Settings::$Api_Username = '******'; Settings::$Api_Password = '******'; Settings::$Api_Account = '1001789'; Settings::$Api_Key = 'b00f57326f8cf34bbb705a74b5fcbaa2b2f3e58076dc81f'; }
/** * @ignore * @access protected */ public function __construct($username = '', $password = '', $account = '', $key = '') { // Make sure settings are set properly and library is ready to run \Agms\Utility\Settings::verifyEnvironment(); if ($username && $password) { $this->username = \Agms\Utility\Connect::sanitize($username); $this->password = \Agms\Utility\Connect::sanitize($password); $this->account = \Agms\Utility\Connect::sanitize($account); $this->key = \Agms\Utility\Connect::sanitize($key); } else { $this->username = \Agms\Utility\Connect::sanitize(\Agms\Utility\Settings::$Api_Username); $this->password = \Agms\Utility\Connect::sanitize(\Agms\Utility\Settings::$Api_Password); $this->account = \Agms\Utility\Connect::sanitize(\Agms\Utility\Settings::$Api_Account); $this->key = \Agms\Utility\Connect::sanitize(\Agms\Utility\Settings::$Api_Key); } }
<?php set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__)) . '/../lib'); /* * Autoload Path */ require realpath(dirname(__FILE__)) . '/../vendor/autoload.php'; /* * Load Settings */ use Agms\Utility\Settings; /* * Gateway settings */ Settings::$Api_Username = '******'; Settings::$Api_Password = '******'; Settings::$Api_Account = '1002186'; Settings::$Api_Key = 'accf69cefaeb1d19702e33b0a9bfc9f8f0ab3c065d937fc';