Download the PHP package dzentota/regression without Composer
On this page you can find all versions of the php package dzentota/regression. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package regression
The simple PHP regression testing framework.
Building PHAR
phar is built using Box. Once box is installed, the phar can be built using the following command from the project directory:
Installation
Use phive
https://phar.io/
phive install dzentota/regression
or add dzentota/regression to .phive/phars.xml e.g
Usage
regression.phar [options] [--]
Documentation
To write a regression test:
- create a new
class
that extends\Regression\Scenario
- implement
getRegressionDescription()
method that describes possible regression - implement
run()
method that contains all the test logic
In your regression tests you should ensure that when you are sending a predefined set of Requests
you get expected Responses
Let's create a regression test for example.com
put this file into tests/regression/ExampleRegression.php
run regression tests
regression.phar -d tests/regression https://example.com
Expected output:
Some functionality in your app may be accessible only for authenticated users. If you need
to send additional information with each request to proof that you are logged in you may
implement a custom session
class that implements \Regression\Session
interface. E.g for
OAuth authentication
Then you need to init this session right after the authentication. You may add a new method into your scenario for convenience:
All versions of regression with dependencies
ext-json Version *
guzzlehttp/guzzle Version 6.5.8
symfony/console Version ^5
ext-sockets Version *
chrome-php/chrome Version 1.10.x-dev