コード例 #1
0
 /**
  * Constructor
  *
  * @param  string $url to paybox endpoint
  *
  * @throws \RuntimeException If cURL is not available
  */
 public function __construct($url = '')
 {
     if (!function_exists('curl_init')) {
         throw new \RuntimeException('cURL is not available. Activate it first.');
     }
     parent::__construct($url);
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function __construct($url = '')
 {
     $this->browser = new Browser(new Curl());
     parent::__construct($url);
 }
コード例 #3
0
 public function testGetEndpoint()
 {
     $this->object->setEndpoint('http://www.hello.fr/hey.cgi');
     $this->assertTrue(is_string($this->object->getEndpoint()));
     $this->assertEquals('http://www.hello.fr/hey.cgi', $this->object->getEndpoint());
 }