Files
cloudflare-php/tests/Adapter/GuzzleTest.php
2017-01-13 23:52:27 +00:00

21 lines
456 B
PHP

<?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');
}
}