daux.io/tests/Format/Confluence/ApiTest.php

15 lines
381 B
PHP

<?php
namespace Todaymade\Daux\Format\Confluence;
use PHPUnit\Framework\TestCase;
class ApiTest extends TestCase
{
// this test supports upgrade Guzzle to version 6
public function testClientOptions()
{
$api = new Api('http://test.com/', 'user', 'pass');
$this->assertEquals('test.com', $api->getClient()->getConfig()['base_uri']->getHost());
}
}