forked from loafle/openapi-generator-original
Rename default packages for php client (#315)
* Rename default packages for php client * Generate php client (OAS3) * Rename namespace for tests * Delete unnecessary 'use' * Rename method/variable * Update php client (OAS3) * Generate php client (OAS2) * Rename namespace for tests * Delete unused files * Fix tests
This commit is contained in:
committed by
William Cheng
parent
e2f8976fa7
commit
376d9af9c0
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace OpenAPITools\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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user