-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest_php_ext.py
More file actions
68 lines (54 loc) · 1.71 KB
/
Copy pathtest_php_ext.py
File metadata and controls
68 lines (54 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import pytest
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_bcmath_is_loaded(host):
assert 'bcmath' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_gd_is_loaded(host):
assert 'gd' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_gmp_is_loaded(host):
assert 'gmp' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_iconv_is_loaded(host):
assert 'iconv' in host.run('php -m').stdout
@pytest.mark.php_dev
def test_meminfo_is_loaded(host):
assert 'meminfo' in host.run('php -m').stdout
@pytest.mark.php_zts
def test_parallel_is_loaded(host):
assert 'parallel' in host.run('php -m').stdout
@pytest.mark.php_nts
def test_parallel_is_not_loaded(host):
assert 'parallel' not in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_pcntl_is_loaded(host):
assert 'pcntl' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_pgsql_is_loaded(host):
assert 'pdo' in host.run('php -m').stdout
assert 'pgsql' in host.run('php -m').stdout
assert 'pdo_pgsql' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_uv_is_loaded(host):
assert 'uv' in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_vips_is_loaded(host):
assert 'vips' in host.run('php -m').stdout
@pytest.mark.php_dev
def test_xdebug_is_loaded(host):
assert 'Xdebug' in host.run('php -m').stdout
@pytest.mark.php_no_dev
def test_xdebug_is_not_loaded(host):
assert 'Xdebug' not in host.run('php -m').stdout
@pytest.mark.php_zts
@pytest.mark.php_nts
def test_zip_is_loaded(host):
assert 'zip' in host.run('php -m').stdout