Download the PHP package wordpoints/module-uninstall-tester without Composer

On this page you can find all versions of the php package wordpoints/module-uninstall-tester. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-uninstall-tester

WordPoints Module Uninstall Tester

A testcase class for testing WordPoints module install and uninstall, with related tools.

Note: this library is now deprecated in favor of the testcase bundled with the WordPoints dev-lib.

Background

This repo is an extension of the WP Plugin Uninstall Tester, which enables it for use with WordPoints modules. For more information about the purpose and use of it, see that repo.

Requirements

The WP Plugin Uninstall Tester is required, and must be included in your bootstrap before you include this extension's files. It will be installed for you automatically if you are using composer.

Compatibility

The library is intended to be compatible with the current stable version of the WordPoints plugin, as well as the bleeding edge development version. It should also be compatible with all versions of PHP and WordPress which those versions of WordPoints support.

Installation

You can install this library with composer:

Set Up

You need to modify your tests' boostrap file to only include the module when the uninstall tests aren't being run.

Secondly, you need to include the bootstrap.php file:

Thirdly, you need to exclude the uninstall group from the tests in your PHPUnit XML config file:

That will exclude the uninstall tests from running by default. To run them, you'll need to do phpunit --group=uninstall.

Finally, you will need to set WORDPOINTS_TESTS_DIR in your environment. This should be the full path to the /tests/phpunit/ directory in the WordPoints plugin development source.

Example:

export WORDPOINTS_TESTS_DIR=/path/to/wordpoints/tests/phpunit/

Usage

The only difference in usage from the plugin uninstall test tools, is that the path to the main module file is stored in the $module_file property, instead of $plugin_file.

License

This library is joint licensed under the MIT and GPLv2 licenses.


All versions of module-uninstall-tester with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
jdgrimes/wp-plugin-uninstall-tester Version ^0.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wordpoints/module-uninstall-tester contains the following files

Loading the files please wait ....