```ruby
require 'spec_helper'

describe package('newrelic-php5') do
  it { should be_installed }
end

describe command('php --re newrelic') do
  it { should return_exit_status 0 }
end

describe command('php --ri newrelic') do
  its(:stdout) { should match /appname => bar/ }
  its(:stdout) { should match /enabled => no/ }
  its(:stdout) { should match /daemon\.logfile => \/var\/log\/newrelic\/newrelic-daemon\.log/ }
  its(:stdout) { should match /browser_monitoring\.auto_instrument => enabled/ }
end
```

Duplicate extension - Change test object
user
```ruby
require 'spec_helper'

describe package('newrelic-php5') do
  it { should be_installed }
end

describe command('php --re newrelic') do
  it { should return_exit_status 0 }
end

describe command('php --ri newrelic') do
  its(:stdout) { should match /appname => bar/ }
  its(:stdout) { should match /enabled => no/ }
  its(:stdout) { should match /daemon\.logfile => \/var\/log\/newrelic\/newrelic-daemon\.log/ }
  its(:stdout) { should match /browser_monitoring\.auto_instrument => enabled/ }
end

describe file('/var/log/php/error.log') do
  its(:content) { should_not match /Warning.*newrelic.*already loaded/ }
end
```
assistant