diff --git a/composer.json b/composer.json index 0a2e5c2..a4b42c6 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,11 @@ "php": ">=8", "ext-json": "*", "ext-pdo": "*", - "laravel/framework": "~8|~9" + "laravel/framework": "~8|~9|~10" }, "require-dev": { - "orchestra/testbench": "~6", - "phpunit/phpunit": "~9" + "orchestra/testbench": "~6|~7|~8", + "phpunit/phpunit": "~10" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 910191b..0bb955f 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -14,17 +14,17 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - - ./tests - + stopOnFailure="true" + cacheDirectory=".phpunit.cache" + backupStaticProperties="false" +> + + ./tests + diff --git a/tests/Colopl/TiDB/TestCase.php b/tests/Colopl/TiDB/TestCase.php index 20670d8..1e07f74 100644 --- a/tests/Colopl/TiDB/TestCase.php +++ b/tests/Colopl/TiDB/TestCase.php @@ -45,7 +45,7 @@ protected function cleanupDatabaseRecords() } } - protected function getConnection($connection = null) + protected function getConnection($connection = null, $table = null) { if (!static::$databasePrepared) { $config = config('database.connections.main');