Update PHP client default value (#417)

* update php default value

* update php samples with oas3
This commit is contained in:
William Cheng
2018-05-11 15:28:09 +08:00
committed by GitHub
parent 0d913e6801
commit e5be838fa8
308 changed files with 49110 additions and 372 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace OpenAPI\Client;
class DebugTest extends \PHPUnit_Framework_TestCase
{
public function testEnableDebugOutput()
{
$this->expectOutputRegex('#GET /v2/pet/1 HTTP/1.1#');
$config = new Configuration();
$config->setDebug(true);
$api = new Api\PetApi(null, $config);
$api->getPetById(1);
}
public function testEnableDebugOutputAsync()
{
$this->expectOutputRegex('#GET /v2/pet/1 HTTP/1.1#');
$config = new Configuration();
$config->setDebug(true);
$api = new Api\PetApi(null, $config);
$promise = $api->getPetByIdAsync(1);
$promise->wait();
}
}