def METHOD_NAME(self):
    ctx = json.load(
        open('tests/data/sessions/vcap_services_memcached.json'))
    sessions = self.extension_module.SessionStoreConfig(ctx)
    sessions.load_config = Dingus()
    php_ini = Dingus()
    sessions._php_ini = php_ini
    sessions._php_ini_path = '/tmp/staged/app/php/etc/php.ini'
    sessions.compile(None)
    eq_(1, len(sessions.load_config.calls()))
    eq_(3, len(php_ini.update_lines.calls()))
    eq_(1, len(php_ini.append_lines.calls()))
    eq_(True, all([arg.endswith('\n')
                   for arg in php_ini.append_lines.calls()[0].args[0]]),
        "Must end with EOL")
    eq_(1, len(php_ini.save.calls()))
    eq_(5, len(php_ini.calls()))
    eq_('session.save_handler = memcached',
        php_ini.update_lines.calls()[1].args[1])
    eq_('session.save_path = "PERSISTENT=app_sessions host:port"',
        php_ini.update_lines.calls()[2].args[1])