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 committed May 29, 2021
1 parent 483fe02 commit 235c462
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 235c462

Please sign in to comment.