From a2b7799eb109448e8551de0740cfe07fd67541b3 Mon Sep 17 00:00:00 2001 From: Chance Date: Wed, 28 Aug 2024 17:00:46 +0800 Subject: [PATCH] test: remove test --- composer.json | 2 -- docker-compose.yml | 2 +- phpunit.xml | 15 -------- tests/Cases/AbstractTestCase.php | 49 --------------------------- tests/Cases/SqlServerTest.php | 21 ------------ tests/bootstrap.php | 5 --- tests/config/autoload/annotations.php | 13 ------- tests/config/autoload/aspects.php | 7 ---- 8 files changed, 1 insertion(+), 113 deletions(-) delete mode 100644 phpunit.xml delete mode 100644 tests/Cases/AbstractTestCase.php delete mode 100644 tests/Cases/SqlServerTest.php delete mode 100644 tests/bootstrap.php delete mode 100644 tests/config/autoload/annotations.php delete mode 100644 tests/config/autoload/aspects.php diff --git a/composer.json b/composer.json index 49f7d3c..d4814dc 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,6 @@ "hyperf/config": "^3.0", "mockery/mockery": "^1.0", "phpstan/phpstan": "^1.0", - "phpunit/phpunit": ">=7.0", "swoole/ide-helper": "^4.5" }, "suggest": { @@ -48,7 +47,6 @@ "sort-packages": true }, "scripts": { - "test": "phpunit -c phpunit.xml --colors=always", "analyse": "phpstan analyse --memory-limit 1024M -l 0 ./src", "cs-fix": "php-cs-fixer fix $1" }, diff --git a/docker-compose.yml b/docker-compose.yml index bea4bc7..2667e2f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,4 +12,4 @@ services: - ACCEPT_EULA=Y - MSSQL_PID=Developer ports: - - "1433:1433" \ No newline at end of file + - 1433:1433 \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index d2c615a..0000000 --- a/phpunit.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - ./tests/ - - \ No newline at end of file diff --git a/tests/Cases/AbstractTestCase.php b/tests/Cases/AbstractTestCase.php deleted file mode 100644 index 1ffc649..0000000 --- a/tests/Cases/AbstractTestCase.php +++ /dev/null @@ -1,49 +0,0 @@ -set(ConfigInterface::class, new Config([ - 'databases' => [ - 'default' => [ - 'driver' => 'sqlsrv', - 'host' => 'db', - 'database' => 'master', - 'port' => 1433, - 'username' => 'sa', - 'password' => 'XTguSD7of8yx%G%r', - 'trust_server_certificate' => true, - 'pool' => [ - 'min_connections' => 1, - 'max_connections' => 10, - 'connect_timeout' => 10.0, - 'wait_timeout' => 3.0, - 'heartbeat' => -1, - 'max_idle_time' => 60, - ], - ], - ], - ])); - } -} diff --git a/tests/Cases/SqlServerTest.php b/tests/Cases/SqlServerTest.php deleted file mode 100644 index 74d4a56..0000000 --- a/tests/Cases/SqlServerTest.php +++ /dev/null @@ -1,21 +0,0 @@ -assertTrue(true); - } -} diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index 08654a0..0000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,5 +0,0 @@ - [ - 'paths' => [ - BASE_PATH . '/src', - ], - 'ignore_annotations' => [ - 'mixin', - ], - ], -]; diff --git a/tests/config/autoload/aspects.php b/tests/config/autoload/aspects.php deleted file mode 100644 index 1ddbe08..0000000 --- a/tests/config/autoload/aspects.php +++ /dev/null @@ -1,7 +0,0 @@ -