Skip to content
Snippets Groups Projects
Commit f58c0151 authored by nimrod's avatar nimrod
Browse files

- Added more test for PEAR and pecl.

parent d933a8d3
Branches
No related tags found
No related merge requests found
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
......@@ -20,3 +20,8 @@
- hosts: all
roles:
- role: php5
post_tasks:
- name: Copy check_pear script
copy:
src: check_pear.php
dest: /root/check_pear.php
......@@ -11,8 +11,15 @@ def test_composer(Command):
assert Command('composer --version').stdout.startswith('Composer version')
def test_pear(Command):
def test_pear(Command, Sudo):
assert Command('pear version').stdout.startswith('PEAR Version')
with Sudo():
assert Command(
'php /root/check_pear.php').stdout.strip() == 'bool(true)'
def test_pecl(Command):
assert Command('pecl version').stdout.startswith('PEAR Version')
def test_php_ini(Command):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment