Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395793
phpunit.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
phpunit.pp
View Options
# Install phpunit, PHP testing framework
#
# === Parameters
#
# [*source*]
# Holds URL to the phpunit source file
#
# [*path*]
# Holds path to the phpunit executable
#
# [*auto_update*]
# Defines if phpunit should be auto updated
#
# [*max_age*]
# Defines the time in days after which an auto-update gets executed
#
class
php
::
phpunit
(
String
$source
=
$php::params::phpunit_source,
Stdlib
::
Absolutepath
$path
=
$php::params::phpunit_path,
Boolean
$auto_update
=
true
,
Integer
$max_age
=
$php::params::phpunit_max_age,
)
inherits
php
::
params
{
if
$caller_module_name
!=
$module_name
{
warning
(
'php::phpunit is private'
)
}
ensure_packages
([
'wget'
])
exec
{
'download phpunit'
:
command
=>
"wget ${source} -O ${path}"
,
creates
=>
$path,
path
=>
[
'/bin/'
,
'/sbin/'
,
'/usr/bin/'
,
'/usr/sbin/'
],
require
=>
[
Class
[
'php::cli'
],
Package
[
'wget'
]],
}
->
file
{
$path:
mode
=>
'0555'
,
owner
=>
root
,
group
=>
root
,
}
if
$auto_update
{
class
{
'php::phpunit::auto_update'
:
max_age
=>
$max_age,
source
=>
$source,
path
=>
$path,
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:44 PM (11 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399353
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment