- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
115 lines
2.2 KiB
PHP
115 lines
2.2 KiB
PHP
<?php
|
|
require_once dirname(dirname(__FILE__)).'/lib/limonade.php';
|
|
require_once dirname(dirname(__FILE__)).'/lib/limonade/tests.php';
|
|
|
|
$basedir = dirname(__FILE__).DS;
|
|
|
|
if(!defined('TESTS_DOC_ROOT'))
|
|
{
|
|
# 1. CONFIG file is required
|
|
$config_file = dirname(__FILE__).'/config/config.php';
|
|
if(file_exists($config_file))
|
|
{
|
|
include $config_file;
|
|
$doc_root = $config['limonade_base_url']."tests/apps/";
|
|
}
|
|
else
|
|
{
|
|
echo <<<OUTPUT
|
|
|
|
ERROR: MISSING CONFIG FILE FOR TESTS
|
|
====================================
|
|
|
|
In order to run test, you must have a valid tests/config/config.php file.
|
|
Please copy tests/config/config.php.dist into tests/config/config.php and
|
|
set required values.
|
|
|
|
The \$config['limonade_base_url'] is required to run functional tests.
|
|
|
|
NOTE: the Limonade source code must be somewhere in your HTTP server public
|
|
folder in order to call testing limonade apps.
|
|
|
|
---
|
|
|
|
OUTPUT;
|
|
exit;
|
|
}
|
|
|
|
# 2. HTTP+CURL requirements
|
|
if(function_exists('curl_version'))
|
|
{
|
|
$url = $doc_root.'index.php';
|
|
$response = test_request($url, 'GET');
|
|
if($response)
|
|
{
|
|
$v = phpversion();
|
|
$curl_v = curl_version();
|
|
$cv = $curl_v['version'];
|
|
if($response == $v)
|
|
{
|
|
|
|
echo <<<OUTPUT
|
|
|
|
==== RUNNING LIMONADE TESTS [PHP $v — cURL $cv] =====
|
|
|
|
OUTPUT;
|
|
} else {
|
|
echo <<<OUTPUT
|
|
|
|
ERROR: Wrong response to HTTP request test
|
|
==========================================
|
|
|
|
Requesting $url
|
|
must return '$v' but returns this response:
|
|
|
|
$response
|
|
|
|
---
|
|
|
|
Your \$config['limonade_base_url'] might be wrong or maybe it's your HTTP
|
|
server configuration and/or php installation.
|
|
Please fix it in order to run tests.
|
|
|
|
---
|
|
|
|
OUTPUT;
|
|
exit;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
exit;
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
echo <<<OUTPUT
|
|
|
|
ERROR: cURL Library is required
|
|
===============================
|
|
|
|
Please install PHP cURL library in order to run Limonade tests.
|
|
|
|
|
|
---
|
|
|
|
OUTPUT;
|
|
}
|
|
|
|
|
|
define('TESTS_DOC_ROOT', $doc_root);
|
|
}
|
|
|
|
|
|
test_suite('Limonade');
|
|
require $basedir."tests.php";
|
|
require $basedir."router.php";
|
|
require $basedir."request.php";
|
|
require $basedir."main.php";
|
|
require $basedir."file.php";
|
|
require $basedir."functional.php";
|
|
require $basedir."output.php";
|
|
require $basedir."http.php";
|
|
end_test_suite();
|