Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
php5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible
php5
Commits
f58c0151
Commit
f58c0151
authored
7 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Added more test for PEAR and pecl.
parent
d933a8d3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/files/check_pear.php
+4
-0
4 additions, 0 deletions
tests/files/check_pear.php
tests/playbook.yml
+5
-0
5 additions, 0 deletions
tests/playbook.yml
tests/test_php5.py
+8
-1
8 additions, 1 deletion
tests/test_php5.py
with
17 additions
and
1 deletion
tests/files/check_pear.php
0 → 100644
+
4
−
0
View file @
f58c0151
<?php
require_once
'System.php'
;
var_dump
(
class_exists
(
'System'
,
false
));
?>
This diff is collapsed.
Click to expand it.
tests/playbook.yml
+
5
−
0
View file @
f58c0151
...
...
@@ -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
This diff is collapsed.
Click to expand it.
tests/test_php5.py
+
8
−
1
View file @
f58c0151
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment