qa-tools / phpunit-extension
QA-Tools extension for PHPUnit
Installs: 4 488
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- aik099/phpunit-mink: ^2.1
- qa-tools/qa-tools: ^1.0
Requires (Dev)
- aik099/coding-standard: dev-master
This package is auto-updated.
Last update: 2024-10-29 04:36:45 UTC
README
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
- when creating unit test class sub-class the base test case class (see Installation)
- use
$this->pageFactory
to get page factory instance associated with current Mink session - see more usage examples at https://github.com/qa-tools/phpunit-example
Installation
- run this command to add Composer dependencies:
php composer.phar require qa-tools/phpunit-extension --dev
- create base class for all unit tests by sub-classing
\QATools\PHPUnitExtension\AbstractQAToolsTestCase
- 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.