PHPUnit extension for integration with QA-Tools
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/QATools/PHPUnitExtension
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
composer.json
composer.lock

README.md

QA-Tools / PHPUnit Extension

Latest Stable Version Total Downloads License

Extension to use QA-Tools library with PHPUnit.

Asking Questions

Feel free to ask any questions and share your experiences in the Chat Room and help to improve the documentation.

Usage

  1. when creating unit test class sub-class the base test case class (see Installation)
  2. use $this->pageFactory to get page factory instance associated with current Mink session
  3. see more usage examples at https://github.com/qa-tools/phpunit-example

Installation

  1. run this command to add Composer dependencies: php composer.phar require qa-tools/phpunit-extension --dev
  2. create base class for all unit tests by sub-classing \QATools\PHPUnitExtension\AbstractQAToolsTestCase
  3. take a look at provided \QATools\PHPUnitExtension\AbstractQAToolsTestCase::getBrowserAliases method (change in sub-class if needed) to find out what default browser is used

Requirements

Contributing

See CONTRIBUTING file.

License

QA-Tools / PHPUnit Extension is released under the BSD-3-Clause License. See the bundled LICENSE file for details.