Skip to content
Browse files

Merge pull request #22 from inviqa/feature/config-attribute-for-phpun…

…it-version

Allow attribute for PHPUnit version to be set via config
  • Loading branch information...
2 parents cd058da + 3adeaef commit a6ab6ee967a1770a96a581e2249e8dbcc85f67b1 @alistairstead alistairstead committed Mar 7, 2013
Showing with 5 additions and 3 deletions.
  1. +3 −1 attributes/default.rb
  2. +2 −2 recipes/PHPUnit.rb
View
4 attributes/default.rb
@@ -34,4 +34,6 @@
default['xcache']['readonly_protection'] = 'Off'
default['xcache']['mmap_path'] = '/dev/zero'
default['xcache']['optimizer'] = 'Off'
-default['xcache']['coverager'] = 'Off'
+default['xcache']['coverager'] = 'Off'
+
+default['phpunit']['version'] = '3.6.11'
View
4 recipes/PHPUnit.rb
@@ -20,7 +20,7 @@
include_recipe "chef-php-extra::pear"
channels = [
- "pear.symfony-project.com",
+ "pear.symfony-project.com",
"components.ez.no"
]
@@ -35,7 +35,7 @@
end
chef_php_extra_pear "PHPUnit" do
- version "3.6.11"
+ version node['phpunit']['version']
channel pu.channel_name
action :install
end

0 comments on commit a6ab6ee

Please sign in to comment.
Something went wrong with that request. Please try again.