| 1 | <?php |
||
| 10 | class SwaggerContext extends BaseContext |
||
| 11 | { |
||
| 12 | use ClientContextTrait; |
||
| 13 | use SymfonyAssertsTrait; |
||
| 14 | |||
| 15 | /** @var ValidatorMap */ |
||
| 16 | private $map; |
||
| 17 | |||
| 18 | public function __construct(ValidatorMap $map) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * This method match the response against its Swagger definition. |
||
| 25 | * |
||
| 26 | * @throws \Behat\Mink\Exception\ExpectationException |
||
| 27 | * @throws \Exception |
||
| 28 | * |
||
| 29 | * @Then the response should match the Swagger definition |
||
| 30 | */ |
||
| 31 | public function theResponseMatchSwagger() |
||
| 39 | } |
||
| 40 |