From 8dda47763627e1c9f38496a315fd5b051013e769 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 20 Dec 2016 11:16:09 +0200
Subject: [PATCH] - Added a php.ini validity test.

---
 tests/test_php5.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/test_php5.py b/tests/test_php5.py
index 5a6d045..2c82b53 100644
--- a/tests/test_php5.py
+++ b/tests/test_php5.py
@@ -13,3 +13,11 @@ def test_composer(Command):
 
 def test_pear(Command):
     assert Command('pear version').stdout.startswith('PEAR Version')
+
+
+def test_php_ini(Command):
+    command = Command('php5 --info')
+    assert command.rc == 0
+    assert 'PHP Version => 5' in command.stdout
+    assert 'syntax error' not in command.stdout
+    assert 'syntax error' not in command.stderr
-- 
GitLab