contexts
contexts copied to clipboard
Behat extension with most custom helper steps
Hello to all, Recently we upgraded behatch contexts from 2.5 version to 2.8.1 with several upgrade and i encounter a problem with my API's tests. So basically i send a...
I have a Behat context that extends `Behatch\Context\BaseContext`, so I usually use asserters available in the `Behatch\Asserter` trait to simplify my context code. Today I wanted to assert that a...
See also: https://github.com/Behatch/contexts/pull/297 This PR has resolved all my issues in relation to the getClass method being called. The error was preventing tests from completing or getting any genuine failures...
Please consider releasing this quick patch supporting PHP upgrade. Thank you. ## ReflectionParameter::getClass > Warning This function has been DEPRECATED as of PHP 8.0.0. Relying on this function is highly...
Fix the following error when BehatchExtension is used with Selenium2 Mink driver : `[11-Sep-2020 12:14:21 Europe/Paris] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function source() on null in...
This will fix a BC break with sending POST request with array #261 & #264
In var $originalName we have always key 'file' instead of the file name.
Hello I am using an **Sanpi\Behatch\Context\XmlContext:theResponseShouldBeInXml** step. The **libxml_get_last_error** called at **Sanpi\Behatch\Xml\Dom:__construct** is throwing an error: "tag rateplan invalid". Everything works ok if I change: ```php $this->dom->validateOnParse = true; ```...
Source: https://php.watch/versions/8.0/deprecated-reflectionparameter-methods#getClass
This is a workaround for https://github.com/symfony/symfony/issues/33393. Currently, because of a limitation in Symfony, a default `Accept` HTTP header is always set to `text/html`. This is annoying when testing an API:...