PHP code example of alexpts / codeception-json-schema
1. Go to this page and download the library: Download alexpts/codeception-json-schema library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alexpts / codeception-json-schema example snippets
class RegionsCest
{
public function _before(FunctionalTester $I)
{
$I->haveHttpHeader('Authorization', 'Bearer xxx');
}
public function getRegionsList(FunctionalTester $I)
{
$I->sendGET('/v1/regions/');
$I->seeResponseCodeIs(200);
$I->validateJsonSchema($I->grabResponse(), '/v1/regions/get.json');
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.