OpenAPI API testing in Laravel projects.
p0n0marev/laravel-openapi-validate is a Laravel package for openapi api testing in laravel projects..
It currently has 2 GitHub stars and 870 downloads on Packagist (latest version 0.0.4).
Install it with composer require p0n0marev/laravel-openapi-validate.
Discover more Laravel packages by p0n0marev
or browse all Laravel packages to compare alternatives.
Last updated
OpenAPI API testing in Laravel projects.
composer require p0n0marev/laravel-openapi-validate --dev
<?php
namespace Tests\Api\Mobile;
use Tests\TestCase;
use Tests\Api\Mobile\OpenApiSchemaValidate;
class ApiTest extends TestCase
{
use OpenApiSchemaValidate;
public function setUp()
{
parent::setUp();
$this->buildResponseValidatorFromJson(file_get_contents('open-api.json'));
}
public function testIndex()
{
$this->get( '/', []);
}
}