Skip to content

Commit 0996add

Browse files
committed
fix tests
1 parent e074101 commit 0996add

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

samples/client/petstore/php/OpenAPIClient-php/tests/PetApiTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,12 @@ public static function setUpBeforeClass(): void
4141

4242
$newPet->setTags(array($tag));
4343
$newPet->setCategory($category);
44-
45-
$config = (new Configuration())->setHost('http://localhost/v2');
46-
$petApi = new Api\PetApi(null, $config);
47-
4844
}
4945

5046
public function setUp(): void
5147
{
52-
$this->api = $petApi;
48+
$config = (new Configuration())->setHost('http://localhost/v2');
49+
$this->api = new Api\PetApi(null, $config);
5350
}
5451

5552
public function testGetPetById()

0 commit comments

Comments
 (0)