Page MenuHomeSoftware Heritage

phpunit.pp
No OneTemporary

phpunit.pp

# == Class: php::phpunit
#
# Install phpunit, PHP testing framework via PEAR, this will be changed to use composer
#
# === Parameters
#
# [*package*]
# The package name for PHPUnit, defaults to phpunit's pear package
#
# [*provider*]
# The package provider used to install PHPUnit, defaults to pear
#
# === Variables
#
# No variables
#
# === Examples
#
# include php::phpunit
#
# === Authors
#
# Christian "Jippi" Winther <jippignu@gmail.com>
# Tobias Nyholm <tobias@happyrecruiting.se>
# Robin Gloster <robin.gloster@mayflower.de>
#
# === Copyright
#
# See LICENSE file
#
#FIXME: no pear
class php::phpunit (
$package = 'pear.phpunit.de/PHPUnit',
$provider = 'pear'
) {
if $caller_module_name != $module_name {
warning("${name} is not part of the public API of the ${module_name} module and should not be directly included in the manifest.")
}
package { $package:
ensure => present,
provider => $provider;
}
Exec['php::pear::auto_discover'] -> Package[$package]
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 21, 9:14 PM (4 w, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3365711

Event Timeline