Initial commit, WIP.
This commit is contained in:
20
tests/Adapter/GuzzleTest.php
Normal file
20
tests/Adapter/GuzzleTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* User: junade
|
||||
* Date: 13/01/2017
|
||||
* Time: 23:35
|
||||
*/
|
||||
class GuzzleTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testGet()
|
||||
{
|
||||
|
||||
$auth = $this->getMockBuilder(\Cloudflare\API\Auth\Auth::class)
|
||||
->setMethods(['getHeaders'])
|
||||
->getMock();
|
||||
|
||||
$client = new \Cloudflare\API\Adapter\Guzzle($auth, 'https://httpbin.org/');
|
||||
$client->get('https://httpbin.org/get');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user