Commit f58c0151 authored by nimrod's avatar nimrod
Browse files

- Added more test for PEAR and pecl.

parent d933a8d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
+5 −0
Original line number Diff line number Diff line
@@ -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
+8 −1
Original line number Diff line number Diff line
@@ -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):