Skip to content

Commit 4df57ce

Browse files
CopilotKanti
andauthored
Restore PHP 8 shmop and Redis checks
Co-authored-by: Kanti <471387+Kanti@users.noreply.github.com>
1 parent 0014f30 commit 4df57ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/serverspec/spec/shared/php/modules.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,13 @@
100100

101101
shared_examples 'php8::modules' do
102102
describe command('php -m') do
103+
its(:stdout) { should contain('shmop') }
103104
its(:stdout) { should contain('Zend OPcache') }
104105

105106
if ( $testConfiguration[:phpRedis] )
106107
its(:stdout) { should contain('redis') }
108+
else
109+
its(:stdout) { should_not contain('redis') }
107110
end
108111

109112
its(:exit_status) { should eq 0 }
@@ -205,6 +208,7 @@
205208

206209
shared_examples 'php-fpm8::modules' do
207210
describe command('curl --insecure --silent --retry 10 --fail http://localhost/php-test.php?test=get_loaded_extensions') do
211+
its(:stdout) { should contain('shmop') }
208212
its(:stdout) { should contain('Zend OPcache') }
209213

210214
if ( $testConfiguration[:phpRedis] )

0 commit comments

Comments
 (0)