Skip to content

Commit

Permalink
Test for ext-meminfo existence on -dev images
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed May 14, 2019
1 parent 859df7a commit 0457b9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/container/test_php_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ def test_configuration_is_not_effective(host):
@pytest.mark.php_no_dev
def test_xdebug_is_not_loaded(host):
assert 'Xdebug' not in host.run('php -m').stdout

@pytest.mark.php_dev
def test_php_meminfo_is_enabled(host):
output = host.run('php -r "exit(function_exists(\'meminfo_dump\') ? 0 : 255);"')
assert output.rc == 0

@pytest.mark.php_no_dev
def test_php_meminfo_is_not_enabled(host):
output = host.run('php -r "exit(function_exists(\'meminfo_dump\') ? 0 : 255);"')
assert output.rc == 255

0 comments on commit 0457b9e

Please sign in to comment.