Behapi
Behapi copied to clipboard
Behat extension for those who want to write acceptances tests for apis
Because it is more maintained than the webmozart (it's a fork of webmozart actually)
Adding an event dispatcher could be useful, if we need to (e.g) add some headers, ... and so on, rather than having to listen to a `@BeforeStep` which may not...
It is a source of bug with the autowiring (cf behat/behat#1080), and also I'm not quite sure it is necessary to support it out of the box. It would also...
The `->getRaw()` call should not be on the result of the `getValue` call, but on the `PyString` value
As discussed, we have to use the tag @api to use --api-debug and the @debug tag. ``` Baptiste Clavié [6:18 PM] je voulais avoir genre soit `@rest` soit `@api` [6:18]...
https://github.com/Taluu/Behapi/blob/master/src/Extension/Behapi.php#L42 From line 42 to 45
Currently using the debug mode with ` --api-debug` nor `@debug` does not works as expected. The debug context is loaded via `behat.yml` ```yaml default: formatters: progress: true suites: main: paths:...
https://github.com/coduo/php-matcher I like the exemple to match a whole json object against a match. But it should be an optionnal dependency IMO (like Twig is).
Instead of forcing a format (eg through `behapi: { debug: { formatter: 'pretty' } }` ), we should use the current printer to print the data correctly, so that it...
Currently, only not-namespaced twig classes are supported (`Twig_Environement` and not `Twig\Environment`). Need to fix that... maybe. Maybe, because I doubt that namespaced twig classes are used, especially as they are...