diff --git a/composer.json b/composer.json
index 38408548ed43b7e32d012e8c5cb38a1a9eaa3dea..5fbb128f292befacfb0e10311a2b51b28d378960 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,6 @@
 {
     "name": "laravel/framework",
+    "version": "10.48.25",
     "description": "The Laravel Framework.",
     "keywords": ["framework", "laravel"],
     "license": "MIT",
@@ -14,16 +15,7 @@
             "email": "taylor@laravel.com"
         }
     ],
-    "require": {
-        "php": "^8.1",
-        "ext-ctype": "*",
-        "ext-filter": "*",
-        "ext-hash": "*",
-        "ext-mbstring": "*",
-        "ext-openssl": "*",
-        "ext-session": "*",
-        "ext-tokenizer": "*",
-        "composer-runtime-api": "^2.2",
+    "replace": {
         "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12",
         "doctrine/inflector": "^2.0.5",
         "dragonmantank/cron-expression": "^3.3.2",
@@ -54,9 +46,7 @@
         "symfony/var-dumper": "^6.2",
         "tijsverkoyen/css-to-inline-styles": "^2.2.5",
         "vlucas/phpdotenv": "^5.4.1",
-        "voku/portable-ascii": "^2.0"
-    },
-    "replace": {
+        "voku/portable-ascii": "^2.0",
         "illuminate/auth": "self.version",
         "illuminate/broadcasting": "self.version",
         "illuminate/bus": "self.version",
diff --git a/debian/run-hack-phpunit.zsh b/debian/run-hack-phpunit.zsh
new file mode 100755
index 0000000000000000000000000000000000000000..a18ea9923ddbaf1352b1ea03c331ebf4758725a7
--- /dev/null
+++ b/debian/run-hack-phpunit.zsh
@@ -0,0 +1,6 @@
+#!/bin/zsh
+autopkgtest \
+--test-name hack-phpunit.sh \
+../php-{laravel-framework,illuminate-,ramsey-uuid}*.deb \
+. \
+-- schroot sid-amd64-sbuild
diff --git a/debian/tests/control b/debian/tests/control
index 4df5198794a81dc1018f3c29589f205ffd38e433..1b70740b07871c301d7ea368ee7d8b069d0e2f34 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,20 @@
+Tests: hack-phpunit.sh
+Restrictions: allow-stderr
+Depends:
+ composer,
+ php-cli,
+ php-curl,
+ php-gd,
+ php-gmp,
+ php-laravel-framework,
+ php-mysql,
+ php-sqlite3,
+ phpab,
+ pkg-php-tools,
+ tzdata-legacy,
+ tzdata,
+ unzip,
+
 Test-Command: php -r 'require_once "Illuminate/autoload.php";'
 Restrictions: superficial
 Features: test-name=load_php-laravel-framework
diff --git a/debian/tests/hack-phpunit.sh b/debian/tests/hack-phpunit.sh
new file mode 100755
index 0000000000000000000000000000000000000000..1c54c5a83463a7f280c3bd3a16a36d65f11bcba1
--- /dev/null
+++ b/debian/tests/hack-phpunit.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -x
+set -e
+
+composer install --dev
+
+sed -i 's|<?php|<?php require_once("tests/autoload.php");|' \
+	vendor/orchestra/testbench-core/testbench
+
+phpabtpl --require-file /usr/share/php/Illuminate/autoload.php \
+	--require-file ../vendor/autoload.php \
+	> debian/autoload.php.test.tpl
+phpab \
+	-t debian/autoload.php.test.tpl \
+	-o tests/autoload.php \
+	--blacklist *foocontroller* \
+	tests
+
+vendor/bin/phpunit --bootstrap tests/autoload.php
diff --git a/tests/Integration/Console/CommandSchedulingTest.php b/tests/Integration/Console/CommandSchedulingTest.php
index 1a4c918aa5e0ba317fe1f0248f63683467d15456..f5599f94505d59dae16ffc5c5b6f3dcaf9f635cc 100644
--- a/tests/Integration/Console/CommandSchedulingTest.php
+++ b/tests/Integration/Console/CommandSchedulingTest.php
@@ -157,6 +157,7 @@ class CommandSchedulingTest extends TestCase
 
 define('LARAVEL_START', microtime(true));
 
+require_once '/usr/share/php/Illuminate/autoload.php';
 require __DIR__.'/../../../autoload.php';
 
 \$app = require_once __DIR__.'/bootstrap/app.php';
diff --git a/tests/Integration/Foundation/ExceptionHandlerTest.php b/tests/Integration/Foundation/ExceptionHandlerTest.php
index b6c71b96e32108ae0bec89f8ad9b44324382d1fe..57663d23701d2a390253b2767485f15e2f77b024 100644
--- a/tests/Integration/Foundation/ExceptionHandlerTest.php
+++ b/tests/Integration/Foundation/ExceptionHandlerTest.php
@@ -134,6 +134,7 @@ class ExceptionHandlerTest extends TestCase
         $process = new PhpProcess(<<<EOF
 <?php
 
+require_once '/usr/share/php/Illuminate/autoload.php';
 require 'vendor/autoload.php';
 
 \$laravel = Orchestra\Testbench\Foundation\Application::create(basePath: '$basePath', options: ['extra' => ['providers' => $providers]]);