Download the PHP package torotil/upal without Composer
On this page you can find all versions of the php package torotil/upal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor torotil
Package upal
Short Description PHPUnit integeration for Drupal
License GPL-2.0+
Homepage https://github.com/torotil/upal
Package upal
Short Description PHPUnit integeration for Drupal
License GPL-2.0+
Homepage https://github.com/torotil/upal
Please rate this library. Is it a good library?
Informations about the package upal
A group of classes used to help run tests using PHPUnit in Drupal.
upal assumes that tests are allowed to modify the database.
Usage
- Install PHPUnit (https://phpunit.de/manual/current/en/installation.html) and Drush (http://drupal.org/project/drush).
- Checkout or download a core Drupal that is to be tested (only tested with 7.x).
- Use any of
Upal\*TestCase
classes as base-class for your tests. - With PHP7.2+ you need a bootstrap script that bootstraps at least to level 4, ie. calls
\Upal\DrupalBootstrap::bootstrap(4)
.
Configuration
By default the configuration is read from UPAL_*
environment variables. If that’s
fine for you only need to ensure that upal’s classes are autoloadable.
Configuration can be loaded from array or file (YAML, XML, etc). upal uses this config library: https://github.com/hassankhan/config.
Example bootstrap.php
Config Defaults
drush
:UPAL_DRUSH
,trim(
which drush)
root
:UPAL_ROOT
,realpath('.')
web_url
:UPAL_WEB_URL
,'http://upal'
tmp
:UPAL_TMP
,sys_get_temp_dir()
All versions of upal with dependencies
PHP Build Version
Package Version
The package torotil/upal contains the following files
Loading the files please wait ....