示例#1
0
 def test_find_php_extensions(self):
     ctx = {'BP_DIR': '.', 'STACK': 'lucid'}
     json = load_binary_index(ctx)
     exts = find_all_php_extensions(json)
     eq_(9, len(exts.keys()))
     tmp = exts[[key for key in exts.keys() if key.startswith('5.4')][0]]
     assert 'amqp' in tmp
     assert 'apc' in tmp
     assert 'imap' in tmp
     assert 'ldap' in tmp
     assert 'phalcon' in tmp
     assert 'pspell' in tmp
     assert 'pdo_pgsql' in tmp
     assert 'mailparse' in tmp
     assert 'redis' in tmp
     assert 'pgsql' in tmp
     assert 'snmp' in tmp
     assert 'cgi' not in tmp
     assert 'cli' not in tmp
     assert 'fpm' not in tmp
     assert 'pear' not in tmp
 def test_find_php_extensions(self):
     ctx = {'BP_DIR': '.', 'STACK': 'lucid'}
     json = load_binary_index(ctx)
     exts = find_all_php_extensions(json)
     eq_(6, len(exts.keys()))
     tmp = exts[exts.keys()[0]]
     assert 'amqp' in tmp
     assert 'apc' in tmp
     assert 'imap' in tmp
     assert 'ldap' in tmp
     assert 'phalcon' in tmp
     assert 'pspell' in tmp
     assert 'pdo_pgsql' in tmp
     assert 'mailparse' in tmp
     assert 'redis' in tmp
     assert 'pgsql' in tmp
     assert 'snmp' in tmp
     assert 'cgi' not in tmp
     assert 'cli' not in tmp
     assert 'fpm' not in tmp
     assert 'pear' not in tmp
示例#3
0
 def test_find_php_extensions(self):
     ctx = {"BP_DIR": ".", "STACK": "lucid"}
     json = load_binary_index(ctx)
     exts = find_all_php_extensions(json)
     eq_(7, len(exts.keys()))
     tmp = exts[exts.keys()[0]]
     assert "amqp" in tmp
     assert "apc" in tmp
     assert "imap" in tmp
     assert "ldap" in tmp
     assert "phalcon" in tmp
     assert "pspell" in tmp
     assert "pdo_pgsql" in tmp
     assert "mailparse" in tmp
     assert "redis" in tmp
     assert "pgsql" in tmp
     assert "snmp" in tmp
     assert "cgi" not in tmp
     assert "cli" not in tmp
     assert "fpm" not in tmp
     assert "pear" not in tmp
 def test_find_php_extensions(self):
     ctx = {'BP_DIR': '.'}
     json = load_binary_index(ctx)
     exts = find_all_php_extensions(json)
     eq_(9, len(exts.keys()))
     tmp = exts[[key for key in exts.keys() if key.startswith('5.4')][0]]
     assert 'amqp' in tmp
     assert 'apc' in tmp
     assert 'imap' in tmp
     assert 'ldap' in tmp
     assert 'phalcon' in tmp
     assert 'pspell' in tmp
     assert 'pdo_pgsql' in tmp
     assert 'mailparse' in tmp
     assert 'redis' in tmp
     assert 'pgsql' in tmp
     assert 'snmp' in tmp
     assert 'cgi' not in tmp
     assert 'cli' not in tmp
     assert 'fpm' not in tmp
     assert 'pear' not in tmp
 def test_find_php_extensions(self):
     ctx = {'BP_DIR': '.'}
     manifest = load_manifest(ctx)
     dependencies = manifest['dependencies']
     exts = find_all_php_extensions(dependencies)
     eq_(9, len(exts.keys()))
     tmp = exts[[key for key in exts.keys() if key.startswith('5.4')][0]]
     assert 'amqp' in tmp
     assert 'apc' in tmp
     assert 'imap' in tmp
     assert 'ldap' in tmp
     assert 'phalcon' in tmp
     assert 'pspell' in tmp
     assert 'pdo_pgsql' in tmp
     assert 'mailparse' in tmp
     assert 'redis' in tmp
     assert 'pgsql' in tmp
     assert 'snmp' in tmp
     assert 'cgi' not in tmp
     assert 'cli' not in tmp
     assert 'fpm' not in tmp
     assert 'pear' not in tmp
 def test_find_php_extensions(self):
     ctx = {'BP_DIR': '.'}
     manifest = load_manifest(ctx)
     dependencies = manifest['dependencies']
     exts = find_all_php_extensions(dependencies)
     eq_(6, len(exts.keys()))
     tmp = exts[[key for key in exts.keys() if key.startswith('5.4')][0]]
     assert 'amqp' in tmp
     assert 'apc' in tmp
     assert 'imap' in tmp
     assert 'ldap' in tmp
     assert 'phalcon' in tmp
     assert 'pspell' in tmp
     assert 'pdo_pgsql' in tmp
     assert 'mailparse' in tmp
     assert 'redis' in tmp
     assert 'pgsql' in tmp
     assert 'snmp' in tmp
     assert 'cgi' not in tmp
     assert 'cli' not in tmp
     assert 'fpm' not in tmp
     assert 'pear' not in tmp
def configure(ctx):
    json = load_binary_index(ctx)
    ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(json)
    ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(json)
示例#8
0
def configure(ctx):
    json = load_binary_index(ctx)
    ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(json)
    ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(json)
示例#9
0
 def _configure(self):
     manifest = load_manifest(self._ctx)
     dependencies = manifest['dependencies']
     self._ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(dependencies)
     self._ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(dependencies)
示例#10
0
 def _configure(self):
     json = load_binary_index(self._ctx)
     self._ctx['ALL_PHP_VERSIONS'] = find_all_php_versions(json)
     self._ctx['ALL_PHP_EXTENSIONS'] = find_all_php_extensions(json)
示例#11
0
 def _configure(self):
     manifest = load_manifest(self._ctx)
     dependencies = manifest["dependencies"]
     self._ctx["ALL_PHP_VERSIONS"] = find_all_php_versions(dependencies)
     self._ctx["ALL_PHP_EXTENSIONS"] = find_all_php_extensions(dependencies)