This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 10
10
define php::extension::xhprof (
11
11
$php ,
12
12
$version = ' 0.9.4' ,
13
- $config_template = " php/extensions/xhprof.ini.erb"
13
+ $config_template = ' php/extensions/xhprof.ini.erb'
14
14
) {
15
15
require php::config
16
16
# Require php version eg. php::5_4_10
Original file line number Diff line number Diff line change
1
+ require 'spec_helper'
2
+
3
+ describe "php::extension::xhprof" do
4
+ let ( :facts ) { default_test_facts }
5
+ let ( :title ) { "xhprof for 5.4.17" }
6
+ let ( :params ) do
7
+ {
8
+ :php => "5.4.17" ,
9
+ :version => "0.9.4"
10
+ }
11
+ end
12
+
13
+ it do
14
+ should include_class ( "php::config" )
15
+ should include_class ( "php::5_4_17" )
16
+
17
+ should contain_php_extension ( "xhprof for 5.4.17" ) . with ( {
18
+ :extension => "xhprof" ,
19
+ :version => "0.9.4" ,
20
+ :package_name => "xhprof-0.9.4" ,
21
+ :package_url => "http://pecl.php.net/get/xhprof-0.9.4.tgz" ,
22
+ :homebrew_path => "/test/boxen/homebrew" ,
23
+ :phpenv_root => "/test/boxen/phpenv" ,
24
+ :php_version => "5.4.17" ,
25
+ :cache_dir => "/test/boxen/data/php/cache/extensions" ,
26
+ } )
27
+
28
+ should contain_file ( "/test/boxen/config/php/5.4.17/conf.d/xhprof.ini" ) . with ( {
29
+ :content => File . read ( "spec/fixtures/xhprof.ini" ) ,
30
+ :require => "Php_extension[xhprof for 5.4.17]"
31
+ } )
32
+ end
33
+ end
Original file line number Diff line number Diff line change
1
+ extension =/test/boxen/phpenv/versions/5.4.17/modules/xhprof.so
You can’t perform that action at this time.
0 commit comments