Skip to content

juanmrad/FlexibleMink

 
 

Repository files navigation

FlexibleMink

Mink Extensions for Commonly Used Assertions and Object Storage

Dependancies

This project is built with Docker and uses Behat and PHPUnit for testing. You will need to install the following:

The Behat configuration is set up to run against localhost.

Setup

FlexibleMink comes packaged with some basic tests which double as exampels and tests of the various contexts implemented. The tests are run on Google Chrome through Selenium against an Apache web server.

To setup the test environment, run the following commands in the project root directory.

> bin/containers up
> bin/init_project

This will spin up the Selenium and Apache docker containers and the install the node and composer dependencies into the project directory.

Usage

Once the setup is complete, usage is quite simple. Run the following in the project root directory.

> bin/phpunit
> bin/behat

PHP 7.2 is set by default when this repository is cloned.
To run tests on PHP 5.6 run export USE_PHP5=1 before running tests
To switch back to PHP 7.2 run export USE_PHP5=0

Debugging

Selenium is configured for VNC on the default port (5900). If you have a VNC client, simply point it to vnc://localhost on port 5900. The password is the default password provided by Selenium, which is secret (as documented on Selenium).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 74.5%
  • Gherkin 14.7%
  • HTML 8.7%
  • Shell 2.1%