Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qa-tools/phpunit-extension
PHPUnit extension for integration with QA-Tools
https://github.com/qa-tools/phpunit-extension
php phpunit-extension qa
Last synced: about 2 months ago
JSON representation
PHPUnit extension for integration with QA-Tools
- Host: GitHub
- URL: https://github.com/qa-tools/phpunit-extension
- Owner: qa-tools
- License: bsd-3-clause
- Created: 2015-10-17T12:51:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-30T11:36:35.000Z (over 4 years ago)
- Last Synced: 2024-08-05T21:05:18.648Z (5 months ago)
- Topics: php, phpunit-extension, qa
- Language: PHP
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# QA-Tools / PHPUnit Extension
[![Latest Stable Version](https://poser.pugx.org/qa-tools/phpunit-extension/v/stable)](https://packagist.org/packages/qa-tools/phpunit-extension)
[![Total Downloads](https://poser.pugx.org/qa-tools/phpunit-extension/downloads)](https://packagist.org/packages/qa-tools/phpunit-extension)
[![License](https://poser.pugx.org/qa-tools/phpunit-extension/license)](https://packagist.org/packages/qa-tools/phpunit-extension)Extension to use [QA-Tools library](http://www.qa-tools.io) with [PHPUnit](https://phpunit.de/).
## Asking Questions
Feel free to ask any questions and share your experiences in the [Chat Room](https://gitter.im/qa-tools/qa-tools) and help to improve the documentation.
## Usage
1. when creating unit test class sub-class the base test case class (see [Installation](#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](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
* [Composer](https://getcomposer.org/download/)
## Contributing
See [CONTRIBUTING](CONTRIBUTING.md) file.
## License
QA-Tools / PHPUnit Extension is released under the BSD-3-Clause License. See the bundled [LICENSE](LICENSE) file for details.