Skip to content

Commit 3c1a77c

Browse files
authored
Merge pull request #272 from WyriHaximusNet/assert-jit-is-active
Assert JIT is active
2 parents 67e9e83 + 1147822 commit 3c1a77c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/container/test_php_config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ def test_configuration_is_effective(host):
66

77
assert u'memory_limit => -1 => -1' in config
88
assert u'opcache.enable_cli => On => On' in config
9+
assert u'opcache.jit => 1255 => 1255' in config
10+
assert u'opcache.jit_buffer_size => 128M => 128M' in config
11+
12+
@pytest.mark.php_dev
13+
def test_configuration_is_effective(host):
14+
config = get_config(host)
15+
16+
assert u'memory_limit => -1 => -1' in config
17+
assert u'opcache.enable_cli => On => On' in config
18+
assert u'opcache.jit => disable => disable' in config
19+
assert u'opcache.jit_buffer_size => 128M => 128M' in config
920

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

0 commit comments

Comments
 (0)