PHP code example of avvertix / wptesttool

1. Go to this page and download the library: Download avvertix/wptesttool library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

avvertix / wptesttool example snippets


[php] ./bin/wptesttools.phar configure [--db=] [--user=] [--pass=] [--host=] [wp-version]

[php] ./bin/wptesttools.phar stub [--plugin=plugin.php] [test-folder]

[php] ./bin/wptesttools.phar downloadwp [wp-version]

[php] ./bin/wptesttools.phar installwp [wp-version]

[php] ./bin/wptesttools.phar stub [--plugin=plugin.php] [test-folder]