Loading tests/files/check_pear.php 0 → 100644 +4 −0 Original line number Diff line number Diff line <?php require_once 'System.php'; var_dump(class_exists('System', false)); ?> tests/playbook.yml +5 −0 Original line number Diff line number Diff line Loading @@ -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 tests/test_php5.py +8 −1 Original line number Diff line number Diff line Loading @@ -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): Loading Loading
tests/files/check_pear.php 0 → 100644 +4 −0 Original line number Diff line number Diff line <?php require_once 'System.php'; var_dump(class_exists('System', false)); ?>
tests/playbook.yml +5 −0 Original line number Diff line number Diff line Loading @@ -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
tests/test_php5.py +8 −1 Original line number Diff line number Diff line Loading @@ -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): Loading