IStranger / phpunit-selenium-doc

This class provides extended documentation (phpDoc) for phpunit-selenium methods

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phpunit-selenium-doc

This class provides extended documentation (phpDoc) for phpunit-selenium methods. Class can be used for easy development of tests in IDE (like phpStorm, NetBeans etc.).

SeleniumTestCaseDoc overrides documentation of PHPUnit_Extensions_SeleniumTestCase methods (according official description of selenium commands). The implementation of there overridden methods is unchanged.

Installation

Class SeleniumTestCaseDoc is trait, which can be mixed to any class (extended from PHPUnit_Extensions_SeleniumTestCase).

  • Manual installation: extract files under vendor directory and add this class to your autoloader (or include manually).
  • Installation via composer: add to your composer.json file ("require" section) the following line "istranger/yii-resource-smart-load": "dev-master" (see packagist page)
  • Add to your web test class SeleniumTestCaseDoc as trait:
class WebTestCase extends CWebTestCase // CWebTestCase extends PHPUnit_Extensions_SeleniumTestCase
{
    use SeleniumTestCaseDoc; // use extended documentation for selenium methods
    ...

Resources

About

This class provides extended documentation (phpDoc) for phpunit-selenium methods

License:MIT License


Languages

Language:HTML 72.4%Language:PHP 21.8%Language:JavaScript 4.1%Language:CSS 1.4%Language:Smarty 0.3%