Exemplo n.º 1
0
 private function setDummyData($name)
 {
     $this->testApiResult = file_get_contents(dirname(__FILE__) . '/dummyData/Transaction/' . $name . '.json');
     $curl = new \Paynl\Curl\Dummy();
     $curl->setResult($this->testApiResult);
     \Paynl\Config::setCurl($curl);
 }
Exemplo n.º 2
0
 public function testGetCurlCustomString()
 {
     \Paynl\Config::setCurl('\\Paynl\\Curl\\Dummy');
     $this->assertInstanceOf('\\Paynl\\Curl\\Dummy', \Paynl\Config::getCurl());
 }