client = new Client( 'TestApiKey', 'TestSignatureKey', Environment::SANDBOX, 'PHPUnitTests' ); $this->testHttpClient = new TestHttpClient($this->client->getConfiguration()); parent::__construct($name, $data, $dataName); } public function loadData($fileName, $asString = false) { $filePath = dirname(__FILE__).'/resources/'.$fileName; if (! $asString) { return json_decode(file_get_contents($filePath), true); } else { return file_get_contents($filePath); } } }