Download the PHP package spiffy/spiffy-test without Composer

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

SpiffyTest

SpiffyTest is a module for bootstrapping PHPUnit and supplying you with a basic service manager instance.

Installation

Installation of SpiffyTest uses composer. For composer documentation, please refer to getcomposer.org.

  1. Copy spiffy-test/Bootstrap.php.dist to your tests/Bootstrap.php.
  2. Copy spiffy-test/config/test.application.config.php.dist to your config/test.application.config.php and modify the modules key to include any test dependent modules.
  3. Copy spiffy-test/config/test.module.config.php.dist to your config/test.module.config.php.dist if you have test specific module overrides (i.e., removing memcache in favor of array cache).

Installation without composer is not officially supported and requires you to setup autoloading on your own.

Usage

Using SpiffyTest involves setting up your testing bootstrap, module config, and application config (optional).

  1. copy bootstrap.php.dist to your test directory and rename to bootstrap.php. Setup phpunit.xml to use this as your bootstrap file.
  2. copy module.config.php.dist to your test directory and rename to module.config.php. Be sure to leave SpiffyTest in your list of modules!
  3. if you have a custom application.config.php requirement then copy application.config.php.dist to your test directory and rename to application.config.php.

Once everything is setup you can access the Module singleton by using \SpiffyTest\Module::getInstance(). This class has helper methods availabe such as getApplication(), getServiceManager() and getApplicationConfig() for testing a mvc stack. You can reset everything by using the reset() method.

Controllers

SpiffyTest comes with \SpiffyTest\Controller\AbstractHttpControllerTestCase which is a customized controller test case that uses SpiffyTest's application. To use, simply have your tests extend the class.


All versions of spiffy-test with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zend-loader Version ~2.2
zendframework/zend-modulemanager Version ~2.2
zendframework/zend-mvc Version ~2.2
zendframework/zend-view Version ~2.2
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 spiffy/spiffy-test contains the following files

Loading the files please wait ....