Download the PHP package macrominds/website-testing without Composer

On this page you can find all versions of the php package macrominds/website-testing. 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 website-testing

Cross-Platform Helper for functional testing of websites.

Start built-in php server from php unit test

macrominds/website-testing allows you to start the built-in php server directly inside unit tests or other php scripts. Especially useful for functional testing. Helps to reduce external dependencies and to make your project self-contained.

Usage example

A rough usage overview. See below for a detailed example.

See this projects' phpunit.xml to learn how you can define HOST, PORT and DOCROOT for your own project.

Installing macrominds/website-testing

Recommended: Composer

The recommended installation way is through Composer.

Run the Composer command to add the latest stable version of macrominds/website-testing to your development dependencies:

or add it to the appropriate section of your composer.json:

Without Composer

You may as well use macrominds/website-testing without Composer. Just fetch src/EmbeddedServerController.php and then in your php file

There you go. Ready for the detailed example?

Detailed usage example

Testing the behavior of your web application. This example uses Guzzle as the HTTP client and phpunit. It requires the usage of Composer.

Your composer.json should contain this section:

Make sure to update composer:

Troubleshooting

If you've got any issues or feature-requests, just add it to the Issues section.

Running the tests from your project root in the first place could help tracking down any issues related to your system.

Have fun.


macrominds – Webdesign and development


All versions of website-testing with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
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 macrominds/website-testing contains the following files

Loading the files please wait ....