Skip to content

Commit

Permalink
Make methods compatible with parent
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormattos authored and GoreSakuraba committed Jul 22, 2022
1 parent 079d842 commit 1cd15f9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/OpenApiSchemaTest.php
Expand Up @@ -12,12 +12,12 @@ class OpenApiSchemaTest extends TestCase
*/
protected $openapiObject;

public function setUp()
public function setUp(): void
{
$this->openapiObject = new OpenApiSchema(file_get_contents(__DIR__ . '/example/openapi.json'));
}

public function tearDown()
public function tearDown(): void
{
$this->openapiObject = null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/OpenApiTest.php
Expand Up @@ -11,7 +11,7 @@

class OpenApiTest extends AbstractRequesterTest
{
public function setUp()
public function setUp(): void
{
$schema = Schema::getInstance(file_get_contents(__DIR__ . '/rest/openapi.json'));
$this->setSchema($schema);
Expand Down
2 changes: 1 addition & 1 deletion tests/OpenApiTestCaseTest.php
Expand Up @@ -7,7 +7,7 @@
class OpenApiTestCaseTest extends TestingTestCase
{

public function setUp()
public function setUp(): void
{
$schema = Schema::getInstance(file_get_contents(__DIR__ . '/rest/openapi.json'));
$this->setSchema($schema);
Expand Down
4 changes: 2 additions & 2 deletions tests/SwaggerSchemaTest.php
Expand Up @@ -12,12 +12,12 @@ class SwaggerSchemaTest extends TestCase
*/
protected $object;

public function setUp()
public function setUp(): void
{
$this->object = \ByJG\ApiTools\Base\Schema::getInstance(file_get_contents(__DIR__ . '/example/swagger.json'));
}

public function tearDown()
public function tearDown(): void
{
$this->object = null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/SwaggerTest.php
Expand Up @@ -10,7 +10,7 @@

class SwaggerTest extends AbstractRequesterTest
{
public function setUp()
public function setUp(): void
{
$schema = Schema::getInstance(file_get_contents(__DIR__ . '/rest/swagger.json'));
$this->setSchema($schema);
Expand Down
2 changes: 1 addition & 1 deletion tests/SwaggerTestCaseTest.php
Expand Up @@ -7,7 +7,7 @@
class SwaggerTestCaseTest extends TestingTestCase
{

public function setUp()
public function setUp(): void
{
$schema = Schema::getInstance(file_get_contents(__DIR__ . '/rest/swagger.json'));
$this->setSchema($schema);
Expand Down

0 comments on commit 1cd15f9

Please sign in to comment.