From 4b49b256bbd9a386400a1fdcc4029b6d23e1b68d Mon Sep 17 00:00:00 2001 From: "akihito.nakano" Date: Thu, 29 Mar 2018 21:01:31 +0900 Subject: [PATCH] Add a Pet before run test cases --- .../petstore/php/SwaggerClient-php/tests/DebugTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/DebugTest.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/DebugTest.php index 6eb9dacaffe..f4deb922f56 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/DebugTest.php +++ b/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/DebugTest.php @@ -3,6 +3,16 @@ namespace Swagger\Client; class DebugTest extends \PHPUnit_Framework_TestCase { + + public static function setUpBeforeClass() + { + parent::setUpBeforeClass(); + $newPet = new Model\Pet; + $newPet->setId(1); + $newPet->setName("PHP Unit Test"); + (new Api\PetApi())->addPetWithHttpInfo($newPet); + } + public function testEnableDebugOutput() { $this->expectOutputRegex('#GET /v2/pet/1 HTTP/1.1#');