Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/container/test_php_config.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
import pytest

@pytest.mark.php_cli
@pytest.mark.php_nts
def test_configuration_is_effective(host):
config = get_config(host)

assert u'memory_limit => -1 => -1' in config
assert u'opcache.enable_cli => On => On' in config
assert u'opcache.jit => 1255 => 1255' in config
assert u'opcache.jit_buffer_size => 128M => 128M' in config

@pytest.mark.php_dev
@pytest.mark.php_zts
def test_configuration_is_effective(host):
config = get_config(host)

assert u'memory_limit => -1 => -1' in config
assert u'opcache.enable_cli => On => On' in config
assert u'opcache.jit => disable => disable' in config
assert u'opcache.jit_buffer_size => 128M => 128M' in config

def get_config(host):
return host.run('php -i').stdout
Loading