feat(Docker): Upgrade to PHP 8.5.0RC3 with native ext-uri support
BREAKING CHANGE: Requires PHP 8.5.0RC3 Changes: - Update Docker base image from php:8.4-fpm to php:8.5.0RC3-fpm - Enable ext-uri for native WHATWG URL parsing support - Update composer.json PHP requirement from ^8.4 to ^8.5 - Add ext-uri as required extension in composer.json - Move URL classes from Url.php85/ to Url/ directory (now compatible) - Remove temporary PHP 8.4 compatibility workarounds Benefits: - Native URL parsing with Uri\WhatWg\Url class - Better performance for URL operations - Future-proof with latest PHP features - Eliminates PHP version compatibility issues
This commit is contained in:
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
use App\Framework\Cache\Cache;
|
||||
use App\Framework\Cache\CacheKey;
|
||||
use App\Framework\Cache\FileCache;
|
||||
use App\Framework\Cache\Driver\FileCache;
|
||||
use App\Framework\Cache\Warming\CacheWarmingService;
|
||||
use App\Framework\Cache\Warming\Strategies\CriticalPathWarmingStrategy;
|
||||
use App\Framework\Cache\Warming\ScheduledWarmupJob;
|
||||
@@ -19,7 +19,7 @@ describe('Cache Warming Integration', function () {
|
||||
$this->cacheDir = sys_get_temp_dir() . '/cache_warming_test_' . uniqid();
|
||||
mkdir($this->cacheDir, 0777, true);
|
||||
|
||||
$this->cache = new FileCache($this->cacheDir);
|
||||
$this->cache = new FileCache();
|
||||
|
||||
$this->logger = Mockery::mock(Logger::class);
|
||||
$this->logger->shouldReceive('info')->andReturnNull();
|
||||
|
||||
@@ -137,8 +137,8 @@ describe('CacheWarmingService', function () {
|
||||
|
||||
$strategies = $service->getStrategies();
|
||||
|
||||
expect($strategies[0]->getName())->toBe('high');
|
||||
expect($strategies[1]->getName())->toBe('low');
|
||||
expect($strategies[0]['name'])->toBe('high');
|
||||
expect($strategies[1]['name'])->toBe('low');
|
||||
});
|
||||
|
||||
it('warms specific strategy by name', function () {
|
||||
@@ -172,7 +172,7 @@ describe('CacheWarmingService', function () {
|
||||
);
|
||||
|
||||
$service->warmStrategy('nonexistent');
|
||||
})->throws(InvalidArgumentException::class, 'Strategy not found: nonexistent');
|
||||
})->throws(InvalidArgumentException::class, "Strategy 'nonexistent' not found");
|
||||
|
||||
it('warms by priority threshold', function () {
|
||||
$critical = Mockery::mock(WarmupStrategy::class);
|
||||
|
||||
Reference in New Issue
Block a user