def test_basic(self): ctx = utils.FormattedDict({ 'BUILD_DIR': self.build_dir, 'PHP_VERSION': '5.4.32' }) ext = PHPExtensionHelper(ctx) ext.load_config() eq_(2, len(ext._ctx)) eq_({}, ext._services) eq_({}, ext._application) eq_(os.path.join(self.phpCfgDir, 'php.ini'), ext._php_ini_path) eq_(os.path.join(self.phpCfgDir, 'php-fpm.conf'), ext._php_fpm_path) eq_(1822, len(ext._php_ini._lines)) eq_(518, len(ext._php_fpm._lines)) eq_('20100525', ext._php_api) eq_(False, ext._should_compile()) eq_(False, ext._should_configure()) eq_(None, ext.configure()) eq_((), ext.preprocess_commands()) eq_({}, ext.service_commands()) eq_({}, ext.service_environment()) eq_(0, ext.compile(None))
def __init__(self, ctx): PHPExtensionHelper.__init__(self, ctx)
def __init__(self, ctx): PHPExtensionHelper.__init__(self, ctx) self.service = None