mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 10:17:39 +08:00
parent
b26916adfb
commit
b18bf79b7e
@ -5,6 +5,7 @@
|
||||
- Upgrade the php version to `>=8.1`
|
||||
- Upgrade the swoole version to `>=5.0`
|
||||
- Upgrade `hyperf/engine` to `^2.0`
|
||||
- Upgrade `phpunit/phpunit` to `^10.0`
|
||||
|
||||
## Swow Supported
|
||||
|
||||
|
@ -13,8 +13,8 @@ if (!version_compare(PHP_VERSION, PHP_VERSION, '=')) {
|
||||
fwrite(STDERR, sprintf('%s declares an invalid value for PHP_VERSION.' . PHP_EOL . 'This breaks fundamental functionality such as version_compare().' . PHP_EOL . 'Please use a different PHP interpreter.' . PHP_EOL, PHP_BINARY));
|
||||
die(1);
|
||||
}
|
||||
if (version_compare('7.3.0', PHP_VERSION, '>')) {
|
||||
fwrite(STDERR, sprintf('This version of PHPUnit requires PHP >= 7.3.' . PHP_EOL . 'You are using PHP %s (%s).' . PHP_EOL, PHP_VERSION, PHP_BINARY));
|
||||
if (version_compare('8.1.0', PHP_VERSION, '>')) {
|
||||
fwrite(STDERR, sprintf('This version of PHPUnit requires PHP >= 8.1.' . PHP_EOL . 'You are using PHP %s (%s).' . PHP_EOL, PHP_VERSION, PHP_BINARY));
|
||||
die(1);
|
||||
}
|
||||
$requiredExtensions = ['dom', 'json', 'libxml', 'mbstring', 'tokenizer', 'xml', 'xmlwriter'];
|
||||
@ -45,11 +45,6 @@ if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
|
||||
fwrite(STDERR, 'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL . ' composer install' . PHP_EOL . PHP_EOL . 'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL);
|
||||
die(1);
|
||||
}
|
||||
$options = getopt('', array('prepend:'));
|
||||
if (isset($options['prepend'])) {
|
||||
require $options['prepend'];
|
||||
}
|
||||
unset($options);
|
||||
if (!isset(getopt('', ['prepend:'])['prepend'])) {
|
||||
(function () {
|
||||
$prepend = null;
|
||||
@ -76,7 +71,7 @@ Swoole\Coroutine::set(['hook_flags' => SWOOLE_HOOK_ALL, 'exit_condition' => func
|
||||
return Swoole\Coroutine::stats()['coroutine_num'] === 0;
|
||||
}]);
|
||||
Swoole\Coroutine\run(function () use(&$code) {
|
||||
$code = PHPUnit\TextUI\Command::main(false);
|
||||
$code = (new PHPUnit\TextUI\Application())->run($_SERVER['argv']);
|
||||
Swoole\Timer::clearAll();
|
||||
Hyperf\Coordinator\CoordinatorManager::until(Hyperf\Coordinator\Constants::WORKER_EXIT)->resume();
|
||||
});
|
||||
|
@ -31,8 +31,9 @@ class RunInCoroutineVisitor extends NodeVisitorAbstract
|
||||
|
||||
public function afterTraverse(array $nodes)
|
||||
{
|
||||
/** @var Node\Stmt\Expression $main */
|
||||
$main = array_pop($nodes);
|
||||
/** @var Node\Stmt\Expression $main */
|
||||
$main = $main->expr;
|
||||
$main = $main->expr;
|
||||
|
||||
$require = array_pop($nodes);
|
||||
@ -47,8 +48,6 @@ class RunInCoroutineVisitor extends NodeVisitorAbstract
|
||||
|
||||
$nodes[] = $this->getCoroutineSetter()[0];
|
||||
|
||||
$main->args[] = new Node\Arg(new Node\Expr\ConstFetch(new Node\Name('false')));
|
||||
|
||||
$nodes[] = new Node\Stmt\Expression(
|
||||
new Node\Expr\FuncCall(
|
||||
new Node\Name('Swoole\Coroutine\run'),
|
||||
|
@ -68,12 +68,12 @@
|
||||
"php-di/phpdoc-reader": "^2.2",
|
||||
"phpspec/prophecy-phpunit": "^2.0",
|
||||
"phpstan/phpstan": "^1.0",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"phpunit/phpunit": "^10.0",
|
||||
"predis/predis": "^1.1",
|
||||
"promphp/prometheus_client_php": "2.2.*",
|
||||
"ramsey/uuid": "^4.7",
|
||||
"reactivex/rxphp": "^2.0",
|
||||
"rector/rector": "^0.12.9",
|
||||
"rector/rector": "^0.17.0",
|
||||
"slickdeals/statsd": "^3.0.1",
|
||||
"smarty/smarty": "^3.1",
|
||||
"squizlabs/php_codesniffer": "^3.4",
|
||||
|
279
phpunit.xml
279
phpunit.xml
@ -1,145 +1,138 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="./bootstrap.php"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false">
|
||||
<coverage processUncoveredFiles="true">
|
||||
<include>
|
||||
<directory suffix=".php">./src/amqp/src</directory>
|
||||
<directory suffix=".php">./src/async-queue/src</directory>
|
||||
<directory suffix=".php">./src/cache/src</directory>
|
||||
<directory suffix=".php">./src/circuit-breaker/src</directory>
|
||||
<directory suffix=".php">./src/command/src</directory>
|
||||
<directory suffix=".php">./src/config/src</directory>
|
||||
<directory suffix=".php">./src/config-center/src</directory>
|
||||
<directory suffix=".php">./src/config-nacos/src</directory>
|
||||
<directory suffix=".php">./src/constants/src</directory>
|
||||
<directory suffix=".php">./src/consul/src</directory>
|
||||
<directory suffix=".php">./src/context/src</directory>
|
||||
<directory suffix=".php">./src/coordinator/src</directory>
|
||||
<directory suffix=".php">./src/crontab/src</directory>
|
||||
<directory suffix=".php">./src/dag/src</directory>
|
||||
<directory suffix=".php">./src/database/src</directory>
|
||||
<directory suffix=".php">./src/database-pgsql/src</directory>
|
||||
<directory suffix=".php">./src/db-connection/src</directory>
|
||||
<directory suffix=".php">./src/di/src</directory>
|
||||
<directory suffix=".php">./src/dispatcher/src</directory>
|
||||
<directory suffix=".php">./src/elasticsearch/src</directory>
|
||||
<directory suffix=".php">./src/etcd/src</directory>
|
||||
<directory suffix=".php">./src/event/src</directory>
|
||||
<directory suffix=".php">./src/grpc-client/src</directory>
|
||||
<directory suffix=".php">./src/guzzle/src</directory>
|
||||
<directory suffix=".php">./src/http-message/src</directory>
|
||||
<directory suffix=".php">./src/http-server/src</directory>
|
||||
<directory suffix=".php">./src/http2-client/src</directory>
|
||||
<directory suffix=".php">./src/json-rpc/src</directory>
|
||||
<directory suffix=".php">./src/kafka/src</directory>
|
||||
<directory suffix=".php">./src/logger/src</directory>
|
||||
<directory suffix=".php">./src/macroable/src</directory>
|
||||
<directory suffix=".php">./src/model-cache/src</directory>
|
||||
<directory suffix=".php">./src/nacos/src</directory>
|
||||
<directory suffix=".php">./src/nats/src</directory>
|
||||
<directory suffix=".php">./src/nsq/src</directory>
|
||||
<directory suffix=".php">./src/paginator/src</directory>
|
||||
<directory suffix=".php">./src/phar/src</directory>
|
||||
<directory suffix=".php">./src/redis/src</directory>
|
||||
<directory suffix=".php">./src/rpc/src</directory>
|
||||
<directory suffix=".php">./src/rpc-client/src</directory>
|
||||
<directory suffix=".php">./src/rpc-multiplex/src</directory>
|
||||
<directory suffix=".php">./src/rpn/src</directory>
|
||||
<directory suffix=".php">./src/scout/src</directory>
|
||||
<directory suffix=".php">./src/server/src</directory>
|
||||
<directory suffix=".php">./src/service-governance/src</directory>
|
||||
<directory suffix=".php">./src/session/src</directory>
|
||||
<directory suffix=".php">./src/snowflake/src</directory>
|
||||
<directory suffix=".php">./src/task/src</directory>
|
||||
<directory suffix=".php">./src/testing/src</directory>
|
||||
<directory suffix=".php">./src/tracer/src</directory>
|
||||
<directory suffix=".php">./src/utils/src</directory>
|
||||
<directory suffix=".php">./src/websocket-client/src</directory>
|
||||
<directory suffix=".php">./src/websocket-server/src</directory>
|
||||
</include>
|
||||
</coverage>
|
||||
<testsuites>
|
||||
<testsuite name="Tests">
|
||||
<directory suffix="Test.php">./src/amqp/tests</directory>
|
||||
<directory suffix="Test.php">./src/async-queue/tests</directory>
|
||||
<directory suffix="Test.php">./src/cache/tests</directory>
|
||||
<directory suffix="Test.php">./src/circuit-breaker/tests</directory>
|
||||
<directory suffix="Test.php">./src/command/tests</directory>
|
||||
<directory suffix="Test.php">./src/config/tests</directory>
|
||||
<directory suffix="Test.php">./src/config-center/tests</directory>
|
||||
<directory suffix="Test.php">./src/config-nacos/tests</directory>
|
||||
<directory suffix="Test.php">./src/config-zookeeper/tests</directory>
|
||||
<directory suffix="Test.php">./src/constants/tests</directory>
|
||||
<directory suffix="Test.php">./src/consul/tests</directory>
|
||||
<directory suffix="Test.php">./src/context/tests</directory>
|
||||
<directory suffix="Test.php">./src/coordinator/tests</directory>
|
||||
<directory suffix="Test.php">./src/crontab/tests</directory>
|
||||
<directory suffix="Test.php">./src/dag/tests</directory>
|
||||
<directory suffix="Test.php">./src/database/tests</directory>
|
||||
<directory suffix="Test.php">./src/database-pgsql/tests</directory>
|
||||
<directory suffix="Test.php">./src/db/tests</directory>
|
||||
<directory suffix="Test.php">./src/db-connection/tests</directory>
|
||||
<directory suffix="Test.php">./src/devtool/tests</directory>
|
||||
<directory suffix="Test.php">./src/di/tests</directory>
|
||||
<directory suffix="Test.php">./src/dispatcher/tests</directory>
|
||||
<directory suffix="Test.php">./src/elasticsearch/tests</directory>
|
||||
<directory suffix="Test.php">./src/etcd/tests</directory>
|
||||
<directory suffix="Test.php">./src/event/tests</directory>
|
||||
<directory suffix="Test.php">./src/exception-handler/tests</directory>
|
||||
<directory suffix="Test.php">./src/framework/tests</directory>
|
||||
<directory suffix="Test.php">./src/grpc-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/grpc-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/guzzle/tests</directory>
|
||||
<directory suffix="Test.php">./src/http-message/tests</directory>
|
||||
<directory suffix="Test.php">./src/http-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/http2-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/json-rpc/tests</directory>
|
||||
<directory suffix="Test.php">./src/kafka/tests</directory>
|
||||
<directory suffix="Test.php">./src/logger/tests</directory>
|
||||
<directory suffix="Test.php">./src/macroable/tests</directory>
|
||||
<directory suffix="Test.php">./src/metric/tests</directory>
|
||||
<directory suffix="Test.php">./src/model-cache/tests</directory>
|
||||
<directory suffix="Test.php">./src/nacos/tests</directory>
|
||||
<directory suffix="Test.php">./src/nats/tests</directory>
|
||||
<directory suffix="Test.php">./src/nsq/tests</directory>
|
||||
<directory suffix="Test.php">./src/paginator/tests</directory>
|
||||
<directory suffix="Test.php">./src/phar/tests</directory>
|
||||
<directory suffix="Test.php">./src/pool/tests</directory>
|
||||
<directory suffix="Test.php">./src/process/tests</directory>
|
||||
<directory suffix="Test.php">./src/protocol/tests</directory>
|
||||
<directory suffix="Test.php">./src/rate-limit/tests</directory>
|
||||
<directory suffix="Test.php">./src/redis/tests</directory>
|
||||
<directory suffix="Test.php">./src/retry/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc-multiplex/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpn/tests</directory>
|
||||
<directory suffix="Test.php">./src/scout/tests</directory>
|
||||
<directory suffix="Test.php">./src/server/tests</directory>
|
||||
<directory suffix="Test.php">./src/service-governance/tests</directory>
|
||||
<directory suffix="Test.php">./src/session/tests</directory>
|
||||
<directory suffix="Test.php">./src/signal/tests</directory>
|
||||
<directory suffix="Test.php">./src/snowflake/tests</directory>
|
||||
<directory suffix="Test.php">./src/socket/tests</directory>
|
||||
<directory suffix="Test.php">./src/socketio-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/super-globals/tests</directory>
|
||||
<directory suffix="Test.php">./src/task/tests</directory>
|
||||
<directory suffix="Test.php">./src/testing/tests</directory>
|
||||
<directory suffix="Test.php">./src/tracer/tests</directory>
|
||||
<directory suffix="Test.php">./src/translation/tests</directory>
|
||||
<directory suffix="Test.php">./src/utils/tests</directory>
|
||||
<directory suffix="Test.php">./src/validation/tests</directory>
|
||||
<directory suffix="Test.php">./src/watcher/tests</directory>
|
||||
<directory suffix="Test.php">./src/websocket-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/websocket-server/tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="./bootstrap.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
|
||||
<coverage/>
|
||||
<testsuites>
|
||||
<testsuite name="Tests">
|
||||
<directory suffix="Test.php">./src/amqp/tests</directory>
|
||||
<directory suffix="Test.php">./src/async-queue/tests</directory>
|
||||
<directory suffix="Test.php">./src/cache/tests</directory>
|
||||
<directory suffix="Test.php">./src/circuit-breaker/tests</directory>
|
||||
<directory suffix="Test.php">./src/command/tests</directory>
|
||||
<directory suffix="Test.php">./src/config/tests</directory>
|
||||
<directory suffix="Test.php">./src/config-center/tests</directory>
|
||||
<directory suffix="Test.php">./src/config-nacos/tests</directory>
|
||||
<directory suffix="Test.php">./src/config-zookeeper/tests</directory>
|
||||
<directory suffix="Test.php">./src/constants/tests</directory>
|
||||
<directory suffix="Test.php">./src/consul/tests</directory>
|
||||
<directory suffix="Test.php">./src/context/tests</directory>
|
||||
<directory suffix="Test.php">./src/coordinator/tests</directory>
|
||||
<directory suffix="Test.php">./src/crontab/tests</directory>
|
||||
<directory suffix="Test.php">./src/dag/tests</directory>
|
||||
<directory suffix="Test.php">./src/database/tests</directory>
|
||||
<directory suffix="Test.php">./src/database-pgsql/tests</directory>
|
||||
<directory suffix="Test.php">./src/db/tests</directory>
|
||||
<directory suffix="Test.php">./src/db-connection/tests</directory>
|
||||
<directory suffix="Test.php">./src/devtool/tests</directory>
|
||||
<directory suffix="Test.php">./src/di/tests</directory>
|
||||
<directory suffix="Test.php">./src/dispatcher/tests</directory>
|
||||
<directory suffix="Test.php">./src/elasticsearch/tests</directory>
|
||||
<directory suffix="Test.php">./src/etcd/tests</directory>
|
||||
<directory suffix="Test.php">./src/event/tests</directory>
|
||||
<directory suffix="Test.php">./src/exception-handler/tests</directory>
|
||||
<directory suffix="Test.php">./src/framework/tests</directory>
|
||||
<directory suffix="Test.php">./src/grpc-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/grpc-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/guzzle/tests</directory>
|
||||
<directory suffix="Test.php">./src/http-message/tests</directory>
|
||||
<directory suffix="Test.php">./src/http-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/http2-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/json-rpc/tests</directory>
|
||||
<directory suffix="Test.php">./src/kafka/tests</directory>
|
||||
<directory suffix="Test.php">./src/logger/tests</directory>
|
||||
<directory suffix="Test.php">./src/macroable/tests</directory>
|
||||
<directory suffix="Test.php">./src/metric/tests</directory>
|
||||
<directory suffix="Test.php">./src/model-cache/tests</directory>
|
||||
<directory suffix="Test.php">./src/nacos/tests</directory>
|
||||
<directory suffix="Test.php">./src/nats/tests</directory>
|
||||
<directory suffix="Test.php">./src/nsq/tests</directory>
|
||||
<directory suffix="Test.php">./src/paginator/tests</directory>
|
||||
<directory suffix="Test.php">./src/phar/tests</directory>
|
||||
<directory suffix="Test.php">./src/pool/tests</directory>
|
||||
<directory suffix="Test.php">./src/process/tests</directory>
|
||||
<directory suffix="Test.php">./src/protocol/tests</directory>
|
||||
<directory suffix="Test.php">./src/rate-limit/tests</directory>
|
||||
<directory suffix="Test.php">./src/redis/tests</directory>
|
||||
<directory suffix="Test.php">./src/retry/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc-multiplex/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpc-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/rpn/tests</directory>
|
||||
<directory suffix="Test.php">./src/scout/tests</directory>
|
||||
<directory suffix="Test.php">./src/server/tests</directory>
|
||||
<directory suffix="Test.php">./src/service-governance/tests</directory>
|
||||
<directory suffix="Test.php">./src/session/tests</directory>
|
||||
<directory suffix="Test.php">./src/signal/tests</directory>
|
||||
<directory suffix="Test.php">./src/snowflake/tests</directory>
|
||||
<directory suffix="Test.php">./src/socket/tests</directory>
|
||||
<directory suffix="Test.php">./src/socketio-server/tests</directory>
|
||||
<directory suffix="Test.php">./src/super-globals/tests</directory>
|
||||
<directory suffix="Test.php">./src/task/tests</directory>
|
||||
<directory suffix="Test.php">./src/testing/tests</directory>
|
||||
<directory suffix="Test.php">./src/tracer/tests</directory>
|
||||
<directory suffix="Test.php">./src/translation/tests</directory>
|
||||
<directory suffix="Test.php">./src/utils/tests</directory>
|
||||
<directory suffix="Test.php">./src/validation/tests</directory>
|
||||
<directory suffix="Test.php">./src/watcher/tests</directory>
|
||||
<directory suffix="Test.php">./src/websocket-client/tests</directory>
|
||||
<directory suffix="Test.php">./src/websocket-server/tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<source>
|
||||
<include>
|
||||
<directory suffix=".php">./src/amqp/src</directory>
|
||||
<directory suffix=".php">./src/async-queue/src</directory>
|
||||
<directory suffix=".php">./src/cache/src</directory>
|
||||
<directory suffix=".php">./src/circuit-breaker/src</directory>
|
||||
<directory suffix=".php">./src/command/src</directory>
|
||||
<directory suffix=".php">./src/config/src</directory>
|
||||
<directory suffix=".php">./src/config-center/src</directory>
|
||||
<directory suffix=".php">./src/config-nacos/src</directory>
|
||||
<directory suffix=".php">./src/constants/src</directory>
|
||||
<directory suffix=".php">./src/consul/src</directory>
|
||||
<directory suffix=".php">./src/context/src</directory>
|
||||
<directory suffix=".php">./src/coordinator/src</directory>
|
||||
<directory suffix=".php">./src/crontab/src</directory>
|
||||
<directory suffix=".php">./src/dag/src</directory>
|
||||
<directory suffix=".php">./src/database/src</directory>
|
||||
<directory suffix=".php">./src/database-pgsql/src</directory>
|
||||
<directory suffix=".php">./src/db-connection/src</directory>
|
||||
<directory suffix=".php">./src/di/src</directory>
|
||||
<directory suffix=".php">./src/dispatcher/src</directory>
|
||||
<directory suffix=".php">./src/elasticsearch/src</directory>
|
||||
<directory suffix=".php">./src/etcd/src</directory>
|
||||
<directory suffix=".php">./src/event/src</directory>
|
||||
<directory suffix=".php">./src/grpc-client/src</directory>
|
||||
<directory suffix=".php">./src/guzzle/src</directory>
|
||||
<directory suffix=".php">./src/http-message/src</directory>
|
||||
<directory suffix=".php">./src/http-server/src</directory>
|
||||
<directory suffix=".php">./src/http2-client/src</directory>
|
||||
<directory suffix=".php">./src/json-rpc/src</directory>
|
||||
<directory suffix=".php">./src/kafka/src</directory>
|
||||
<directory suffix=".php">./src/logger/src</directory>
|
||||
<directory suffix=".php">./src/macroable/src</directory>
|
||||
<directory suffix=".php">./src/model-cache/src</directory>
|
||||
<directory suffix=".php">./src/nacos/src</directory>
|
||||
<directory suffix=".php">./src/nats/src</directory>
|
||||
<directory suffix=".php">./src/nsq/src</directory>
|
||||
<directory suffix=".php">./src/paginator/src</directory>
|
||||
<directory suffix=".php">./src/phar/src</directory>
|
||||
<directory suffix=".php">./src/redis/src</directory>
|
||||
<directory suffix=".php">./src/rpc/src</directory>
|
||||
<directory suffix=".php">./src/rpc-client/src</directory>
|
||||
<directory suffix=".php">./src/rpc-multiplex/src</directory>
|
||||
<directory suffix=".php">./src/rpn/src</directory>
|
||||
<directory suffix=".php">./src/scout/src</directory>
|
||||
<directory suffix=".php">./src/server/src</directory>
|
||||
<directory suffix=".php">./src/service-governance/src</directory>
|
||||
<directory suffix=".php">./src/session/src</directory>
|
||||
<directory suffix=".php">./src/snowflake/src</directory>
|
||||
<directory suffix=".php">./src/task/src</directory>
|
||||
<directory suffix=".php">./src/testing/src</directory>
|
||||
<directory suffix=".php">./src/tracer/src</directory>
|
||||
<directory suffix=".php">./src/utils/src</directory>
|
||||
<directory suffix=".php">./src/websocket-client/src</directory>
|
||||
<directory suffix=".php">./src/websocket-server/src</directory>
|
||||
</include>
|
||||
</source>
|
||||
</phpunit>
|
||||
|
28
rector.php
28
rector.php
@ -9,24 +9,20 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Php74\Rector\Property\TypedPropertyRector;
|
||||
use Rector\Set\ValueObject\LevelSetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\PHPUnit\Set\PHPUnitSetList;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
// get parameters
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(Option::PATHS, [
|
||||
__DIR__ . '/src',
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->paths([
|
||||
__DIR__ . '/src/*/tests',
|
||||
]);
|
||||
|
||||
// Define what rule sets will be applied
|
||||
$containerConfigurator->import(LevelSetList::UP_TO_PHP_80);
|
||||
|
||||
// get services (needed for register a single rule)
|
||||
// $services = $containerConfigurator->services();
|
||||
|
||||
// register a single rule
|
||||
// $services->set(TypedPropertyRector::class);
|
||||
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
||||
|
||||
// define sets of rules
|
||||
$rectorConfig->sets([
|
||||
PHPUnitSetList::PHPUNIT_100,
|
||||
]);
|
||||
};
|
||||
|
@ -17,12 +17,14 @@ use Hyperf\Coordinator\Constants;
|
||||
use Hyperf\Coordinator\CoordinatorManager;
|
||||
use HyperfTest\Amqp\Stub\AMQPConnectionStub;
|
||||
use HyperfTest\Amqp\Stub\ContainerStub;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class AMQPConnectionTest extends TestCase
|
||||
{
|
||||
public function testMakeChannelId()
|
||||
|
@ -20,6 +20,7 @@ use Hyperf\Process\ProcessManager;
|
||||
use HyperfTest\Amqp\Stub\ContainerStub;
|
||||
use HyperfTest\Amqp\Stub\DemoConsumer;
|
||||
use HyperfTest\Amqp\Stub\NumsConsumer;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -27,6 +28,7 @@ use stdClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConsumerManagerTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -22,6 +22,7 @@ use HyperfTest\Amqp\Stub\Delay2Consumer;
|
||||
use HyperfTest\Amqp\Stub\DelayConsumer;
|
||||
use Mockery;
|
||||
use PhpAmqpLib\Channel\Frame;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use ReflectionClass;
|
||||
@ -30,6 +31,7 @@ use ReflectionClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConsumerTest extends TestCase
|
||||
{
|
||||
public function testConsumerConcurrentLimit()
|
||||
|
@ -16,6 +16,7 @@ use Hyperf\Amqp\Listener\BeforeMainServerStartListener;
|
||||
use Hyperf\Config\Config;
|
||||
use Hyperf\Contract\ConfigInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use stdClass;
|
||||
@ -24,6 +25,7 @@ use stdClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class BeforeMainServerStartListenerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
|
@ -20,6 +20,7 @@ use Hyperf\Contract\StdoutLoggerInterface;
|
||||
use Hyperf\Di\Annotation\AnnotationCollector;
|
||||
use HyperfTest\Amqp\Stub\DemoProducer;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use stdClass;
|
||||
@ -28,6 +29,7 @@ use stdClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class MainWorkerStartListenerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
|
@ -19,12 +19,14 @@ use HyperfTest\Amqp\Stub\ContainerStub;
|
||||
use HyperfTest\Amqp\Stub\QosConsumer;
|
||||
use Mockery;
|
||||
use PhpAmqpLib\Channel\AMQPChannel;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConsumerMessageTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\Amqp\Message;
|
||||
|
||||
use HyperfTest\Amqp\Stub\DemoConsumer;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class MessageTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Params;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ParamsTest extends TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
|
@ -25,6 +25,7 @@ use Hyperf\Di\Aop\Ast;
|
||||
use Hyperf\Di\ReflectionManager;
|
||||
use HyperfTest\AsyncQueue\Stub\FooProxy;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
@ -32,6 +33,7 @@ use Psr\Container\ContainerInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class AsyncQueueAspectTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
@ -41,9 +43,7 @@ class AsyncQueueAspectTest extends TestCase
|
||||
ReflectionManager::clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* @group NonCoroutine
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
|
||||
public function testNotAsyncMessage()
|
||||
{
|
||||
$container = $this->getContainer();
|
||||
@ -56,9 +56,7 @@ class AsyncQueueAspectTest extends TestCase
|
||||
$this->assertSame([$id, $uuid, $data], Context::get(FooProxy::class));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group NonCoroutine
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
|
||||
public function testAsyncMessage()
|
||||
{
|
||||
$container = $this->getContainer();
|
||||
@ -71,9 +69,7 @@ class AsyncQueueAspectTest extends TestCase
|
||||
$this->assertSame($data, Context::get(FooProxy::class));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group NonCoroutine
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
|
||||
public function testAsyncMessageVariadic()
|
||||
{
|
||||
$container = $this->getContainer();
|
||||
|
@ -20,6 +20,7 @@ use Hyperf\Redis\RedisFactory;
|
||||
use HyperfTest\AsyncQueue\Stub\Redis;
|
||||
use HyperfTest\AsyncQueue\Stub\RedisDriverStub;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
|
||||
@ -27,6 +28,7 @@ use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DriverTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -16,12 +16,14 @@ use Hyperf\AsyncQueue\Event\QueueLength;
|
||||
use Hyperf\AsyncQueue\Listener\ReloadChannelListener;
|
||||
use Hyperf\Contract\StdoutLoggerInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ListenerTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -15,12 +15,14 @@ use Hyperf\AsyncQueue\JobInterface;
|
||||
use Hyperf\AsyncQueue\JobMessage;
|
||||
use Hyperf\AsyncQueue\MessageInterface;
|
||||
use HyperfTest\AsyncQueue\Stub\DemoJob;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class MessageTest extends TestCase
|
||||
{
|
||||
public function testMessageSerialize()
|
||||
|
@ -26,6 +26,7 @@ use HyperfTest\AsyncQueue\Stub\DemoModel;
|
||||
use HyperfTest\AsyncQueue\Stub\DemoModelMeta;
|
||||
use HyperfTest\AsyncQueue\Stub\Redis;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
|
||||
@ -33,6 +34,7 @@ use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class RedisDriverTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
2
src/cache/tests/Cases/AnnotationTest.php
vendored
2
src/cache/tests/Cases/AnnotationTest.php
vendored
@ -18,12 +18,14 @@ use Hyperf\Cache\AnnotationManager;
|
||||
use Hyperf\Contract\ConfigInterface;
|
||||
use Hyperf\Contract\StdoutLoggerInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class AnnotationTest extends TestCase
|
||||
{
|
||||
public function testIntCacheableAndCachePut()
|
||||
|
2
src/cache/tests/Cases/AspectTest.php
vendored
2
src/cache/tests/Cases/AspectTest.php
vendored
@ -18,12 +18,14 @@ use Hyperf\Cache\CacheManager;
|
||||
use Hyperf\Di\Aop\ProceedingJoinPoint;
|
||||
use HyperfTest\Cache\Stub\ContainerStub;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class AspectTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Cache\Cases;
|
||||
use Hyperf\Cache\Driver\CoroutineMemoryDriver;
|
||||
use Hyperf\Codec\Packer\PhpSerializerPacker;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
@ -23,6 +24,7 @@ use function Hyperf\Coroutine\parallel;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CoroutineMemoryDriverTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -21,12 +21,14 @@ use Hyperf\Di\Container;
|
||||
use Hyperf\Support\Filesystem\Filesystem;
|
||||
use HyperfTest\Cache\Stub\Foo;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class FileSystemDriverTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
2
src/cache/tests/Cases/RedisDriverTest.php
vendored
2
src/cache/tests/Cases/RedisDriverTest.php
vendored
@ -33,12 +33,14 @@ use Hyperf\Redis\RedisProxy;
|
||||
use HyperfTest\Cache\Stub\Foo;
|
||||
use HyperfTest\Cache\Stub\SerializeRedisDriver;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class RedisDriverTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
2
src/cache/tests/Cases/StringHelperTest.php
vendored
2
src/cache/tests/Cases/StringHelperTest.php
vendored
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Cache\Cases;
|
||||
|
||||
use Hyperf\Cache\Helper\StringHelper;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class StringHelperTest extends TestCase
|
||||
{
|
||||
public function testFormat()
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\CircuitBreaker\Annotation;
|
||||
|
||||
use Hyperf\CircuitBreaker\Annotation\CircuitBreaker;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CircuitBreakerTest extends TestCase
|
||||
{
|
||||
public function testAttributeCollect()
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\CodeParser;
|
||||
|
||||
use Hyperf\CodeParser\PhpDocReader;
|
||||
use HyperfTest\Utils\Stub\DocFoo;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
@ -20,6 +21,7 @@ use ReflectionClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class PhpDocReaderTest extends TestCase
|
||||
{
|
||||
public function testGetReturnClass()
|
||||
|
@ -19,6 +19,7 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\ParserFactory;
|
||||
use PhpParser\PrettyPrinter\Standard;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
@ -26,6 +27,7 @@ use ReflectionClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class PhpParserTest extends TestCase
|
||||
{
|
||||
public function testGetAstFromReflectionParameter()
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\CodeParser;
|
||||
|
||||
use Hyperf\CodeParser\Project;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ProjectTest extends TestCase
|
||||
{
|
||||
public function testNamespaceFor()
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Codec;
|
||||
|
||||
use Hyperf\Codec\Base62;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class Base62Test extends TestCase
|
||||
{
|
||||
public function testEncode()
|
||||
|
@ -15,6 +15,7 @@ use Hyperf\Codec\Exception\InvalidArgumentException;
|
||||
use Hyperf\Codec\Json;
|
||||
use HyperfTest\Codec\Stub\Car;
|
||||
use HyperfTest\Codec\Stub\StringCodeException;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Throwable;
|
||||
|
||||
@ -24,6 +25,7 @@ use function Hyperf\Coroutine\go;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class JsonTest extends TestCase
|
||||
{
|
||||
public function testEncode()
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Codec\Packer;
|
||||
|
||||
use Hyperf\Codec\Packer\JsonPacker;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class JsonPackerTest extends TestCase
|
||||
{
|
||||
public function testJsonEncodeAndDecode()
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\Codec;
|
||||
|
||||
use Hyperf\Codec\Exception\InvalidArgumentException;
|
||||
use Hyperf\Codec\Xml;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class XmlTest extends TestCase
|
||||
{
|
||||
public function testToArray()
|
||||
|
@ -12,6 +12,7 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Collections;
|
||||
|
||||
use Hyperf\Collection\Arr;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -19,6 +20,7 @@ use stdClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ArrTest extends TestCase
|
||||
{
|
||||
public function testArrGet()
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Collections;
|
||||
|
||||
use Hyperf\Collection\Collection;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CollectionTest extends TestCase
|
||||
{
|
||||
public function testOperatorForWhere()
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Collection;
|
||||
use ArrayAccess;
|
||||
use ArrayIterator;
|
||||
use IteratorAggregate;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Traversable;
|
||||
|
||||
@ -28,6 +29,7 @@ use function Hyperf\Collection\value;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class FunctionsTest extends TestCase
|
||||
{
|
||||
public function testDataGet()
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\Command;
|
||||
|
||||
use Hyperf\Command\Parser;
|
||||
use InvalidArgumentException;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CommandParserTest extends TestCase
|
||||
{
|
||||
public function testBasicParameterParsing()
|
||||
|
@ -19,6 +19,7 @@ use HyperfTest\Command\Command\FooExceptionCommand;
|
||||
use HyperfTest\Command\Command\FooExitCommand;
|
||||
use HyperfTest\Command\Command\SwooleFlagsCommand;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
@ -29,6 +30,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CommandTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
@ -45,9 +47,7 @@ class CommandTest extends TestCase
|
||||
$this->assertSame(SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL, $command->getHookFlags());
|
||||
}
|
||||
|
||||
/**
|
||||
* @group NonCoroutine
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
|
||||
public function testExitCodeWhenThrowException()
|
||||
{
|
||||
ApplicationContext::setContainer($container = Mockery::mock(ContainerInterface::class));
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Conditionable;
|
||||
|
||||
use Hyperf\Conditionable\Conditionable;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConditionableTest extends TestCase
|
||||
{
|
||||
public function testWhenConditionCallback()
|
||||
|
@ -18,6 +18,7 @@ use Hyperf\Context\ApplicationContext;
|
||||
use Hyperf\Contract\ConfigInterface;
|
||||
use Hyperf\Guzzle\ClientFactory;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
@ -25,6 +26,7 @@ use Psr\Container\ContainerInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
public function testPull()
|
||||
|
@ -16,8 +16,9 @@ use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @covers \Hyperf\ConfigApollo\Option
|
||||
* @coversNothing
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\ConfigApollo\Option::class)]
|
||||
class OptionTest extends TestCase
|
||||
{
|
||||
public function testBuildUrl()
|
||||
|
@ -22,12 +22,14 @@ use Hyperf\ConfigNacos;
|
||||
use Hyperf\Coordinator\Constants;
|
||||
use Hyperf\Coordinator\CoordinatorManager;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class AbstractDriverTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
@ -37,9 +39,7 @@ class AbstractDriverTest extends TestCase
|
||||
CoordinatorManager::clear(Constants::WORKER_EXIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getConfig
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('getConfig')]
|
||||
public function testCreateMessageFetcherLoopForCoroutineMode(Config $config)
|
||||
{
|
||||
ContainerStub::mockContainer($config);
|
||||
@ -52,9 +52,7 @@ class AbstractDriverTest extends TestCase
|
||||
$this->assertSame(['message' => 'Hello Hyperf', 'id' => 1], $config->get('test'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getConfigAndPipeMessage
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('getConfigAndPipeMessage')]
|
||||
public function testOnPipeMessage(Config $config, PipeMessageInterface $pipeMessage, array $assert)
|
||||
{
|
||||
ContainerStub::mockContainer($config);
|
||||
@ -66,37 +64,37 @@ class AbstractDriverTest extends TestCase
|
||||
$this->assertSame($assert, $config->get('test'));
|
||||
}
|
||||
|
||||
public function getConfig(): array
|
||||
public static function getConfig(): array
|
||||
{
|
||||
return [
|
||||
[$this->getEtcdConfig()],
|
||||
[$this->getNacosConfig()],
|
||||
[self::getEtcdConfig()],
|
||||
[self::getNacosConfig()],
|
||||
];
|
||||
}
|
||||
|
||||
public function getConfigAndPipeMessage()
|
||||
public static function getConfigAndPipeMessage()
|
||||
{
|
||||
$assert = ['message' => 'Hello Hyperf', 'id' => 1];
|
||||
return [
|
||||
[
|
||||
$this->getEtcdConfig(),
|
||||
$this->getEtcdPipeMessage(),
|
||||
self::getEtcdConfig(),
|
||||
self::getEtcdPipeMessage(),
|
||||
$assert,
|
||||
],
|
||||
[
|
||||
$this->getNacosConfig(),
|
||||
$this->getNacosPipeMessage(),
|
||||
self::getNacosConfig(),
|
||||
self::getNacosPipeMessage(),
|
||||
$assert,
|
||||
],
|
||||
[
|
||||
$this->getNacosConfig(ConfigNacos\Constants::CONFIG_MERGE_APPEND),
|
||||
$this->getNacosPipeMessage(),
|
||||
self::getNacosConfig(ConfigNacos\Constants::CONFIG_MERGE_APPEND),
|
||||
self::getNacosPipeMessage(),
|
||||
array_merge(['name' => 'Hyperf'], $assert),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
protected function getEtcdPipeMessage(): PipeMessage
|
||||
protected static function getEtcdPipeMessage(): PipeMessage
|
||||
{
|
||||
return new PipeMessage([
|
||||
'/application/test' => [
|
||||
@ -106,14 +104,14 @@ class AbstractDriverTest extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
protected function getNacosPipeMessage(): PipeMessage
|
||||
protected static function getNacosPipeMessage(): PipeMessage
|
||||
{
|
||||
return new PipeMessage([
|
||||
'test' => ['message' => 'Hello Hyperf', 'id' => 1],
|
||||
]);
|
||||
}
|
||||
|
||||
protected function getNacosConfig($mergeMode = ConfigNacos\Constants::CONFIG_MERGE_OVERWRITE): Config
|
||||
protected static function getNacosConfig($mergeMode = ConfigNacos\Constants::CONFIG_MERGE_OVERWRITE): Config
|
||||
{
|
||||
return new Config([
|
||||
'config_center' => [
|
||||
@ -133,7 +131,7 @@ class AbstractDriverTest extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
protected function getEtcdConfig(): Config
|
||||
protected static function getEtcdConfig(): Config
|
||||
{
|
||||
return new Config([
|
||||
'config_center' => [
|
||||
|
@ -18,6 +18,7 @@ use Hyperf\ConfigCenter\Listener\CreateMessageFetcherLoopListener;
|
||||
use Hyperf\ConfigCenter\Mode;
|
||||
use Hyperf\Contract\StdoutLoggerInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -25,6 +26,7 @@ use stdClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CreateMessageFetcherLoopListenerTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -20,12 +20,14 @@ use Hyperf\Contract\StdoutLoggerInterface;
|
||||
use Hyperf\Process\Event\PipeMessage as UserProcessPipeMessage;
|
||||
use HyperfTest\ConfigCenter\ContainerStub;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class OnPipeMessageListenerTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -26,6 +26,7 @@ use Hyperf\Di\Container;
|
||||
use Hyperf\Process\ProcessManager;
|
||||
use HyperfTest\ConfigCenter\ContainerStub;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
use Swoole\Server;
|
||||
@ -34,6 +35,7 @@ use Swoole\Server;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConfigFetcherProcessTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -18,6 +18,7 @@ use Hyperf\Contract\ConfigInterface;
|
||||
use Hyperf\Guzzle\HandlerStackFactory;
|
||||
use Hyperf\Support\Reflection\ClassInvoker;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
@ -25,6 +26,7 @@ use Psr\Container\ContainerInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class KVFactoryTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\ConfigNacos;
|
||||
|
||||
use Hyperf\ConfigNacos\Client;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -22,6 +22,7 @@ use Hyperf\Di\Container;
|
||||
use Hyperf\Framework\Event\OnPipeMessage;
|
||||
use Hyperf\Guzzle\ClientFactory;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function Hyperf\Support\value;
|
||||
@ -30,6 +31,7 @@ use function Hyperf\Support\value;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
public function testPull()
|
||||
|
@ -15,6 +15,7 @@ use Hyperf\Config\Config;
|
||||
use Hyperf\Context\ApplicationContext;
|
||||
use Hyperf\Contract\ConfigInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
@ -24,6 +25,7 @@ use function Hyperf\Config\config;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConfigTest extends TestCase
|
||||
{
|
||||
public function testConfigFunction()
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Config;
|
||||
use Hyperf\Collection\Arr;
|
||||
use HyperfTest\Config\Stub\FooConfigProvider;
|
||||
use HyperfTest\Config\Stub\ProviderConfig;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function Hyperf\Support\value;
|
||||
@ -22,6 +23,7 @@ use function Hyperf\Support\value;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ProviderConfigTest extends TestCase
|
||||
{
|
||||
public function testProviderConfigMerge()
|
||||
|
@ -21,6 +21,7 @@ use Hyperf\Translation\ArrayLoader;
|
||||
use Hyperf\Translation\Translator;
|
||||
use HyperfTest\Constants\Stub\ErrorCodeStub;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
@ -28,6 +29,7 @@ use ReflectionClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class AnnotationReaderTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
|
@ -24,8 +24,9 @@ use Psr\Log\NullLogger;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @covers \Hyperf\Consul\Agent
|
||||
* @coversNothing
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Consul\Agent::class)]
|
||||
class AgentTest extends TestCase
|
||||
{
|
||||
/**
|
||||
|
@ -19,8 +19,9 @@ use ReflectionMethod;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @covers \Hyperf\Consul\Client
|
||||
* @coversNothing
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Consul\Client::class)]
|
||||
class ClientTest extends TestCase
|
||||
{
|
||||
/**
|
||||
|
@ -26,8 +26,9 @@ use Psr\Log\NullLogger;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @covers \Hyperf\Consul\KV
|
||||
* @coversNothing
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Consul\KV::class)]
|
||||
class KVTest extends TestCase
|
||||
{
|
||||
private $kv;
|
||||
|
@ -15,12 +15,14 @@ use Hyperf\Context\ApplicationContext;
|
||||
use Hyperf\Di\Container;
|
||||
use Hyperf\Di\Definition\DefinitionSourceInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ApplicationContextTest extends TestCase
|
||||
{
|
||||
public function testApplicationContext()
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Context;
|
||||
|
||||
use Hyperf\Context\Context;
|
||||
use Hyperf\Coroutine\Coroutine;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -22,6 +23,7 @@ use function Hyperf\Coroutine\parallel;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ContextTest extends TestCase
|
||||
{
|
||||
public function testOverride()
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Context\Traits;
|
||||
|
||||
use Hyperf\Context\Context;
|
||||
use Hyperf\Context\Traits\CoroutineProxy;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use RuntimeException;
|
||||
|
||||
@ -20,6 +21,7 @@ use RuntimeException;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CoroutineProxyTest extends TestCase
|
||||
{
|
||||
public function testCoroutineProxy()
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Coordinator;
|
||||
|
||||
use Hyperf\Coordinator\Coordinator;
|
||||
use Hyperf\Coroutine\WaitGroup;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function Hyperf\Coroutine\go;
|
||||
@ -21,6 +22,7 @@ use function Hyperf\Coroutine\go;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CoordinatorTest extends TestCase
|
||||
{
|
||||
public function testYield()
|
||||
|
@ -15,12 +15,14 @@ use Closure;
|
||||
use Hyperf\Coordinator\CoordinatorManager;
|
||||
use Hyperf\Coordinator\Timer;
|
||||
use Hyperf\Coroutine\Waiter;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class TimerTest extends TestCase
|
||||
{
|
||||
public function testAfter()
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Coroutine\Channel;
|
||||
|
||||
use Hyperf\Coroutine\Channel\Caller;
|
||||
use Hyperf\Coroutine\Exception\WaitTimeoutException;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -22,6 +23,7 @@ use function Hyperf\Coroutine\go;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CallerTest extends TestCase
|
||||
{
|
||||
public function testCallerWithNull()
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Coroutine\Channel;
|
||||
|
||||
use Hyperf\Coroutine\Channel\Manager as ChannelManager;
|
||||
use Hyperf\Engine\Channel;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function Hyperf\Coroutine\go;
|
||||
@ -21,6 +22,7 @@ use function Hyperf\Coroutine\go;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ChannelManagerTest extends TestCase
|
||||
{
|
||||
public function testChannelManager()
|
||||
|
@ -15,6 +15,7 @@ use Exception;
|
||||
use Hyperf\Context\ApplicationContext;
|
||||
use Hyperf\Coroutine\Concurrent;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Swoole\Coroutine;
|
||||
@ -23,6 +24,7 @@ use Swoole\Coroutine;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConcurrentTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
|
@ -19,6 +19,7 @@ use Hyperf\Engine\Channel;
|
||||
use Hyperf\Engine\Exception\CoroutineDestroyedException;
|
||||
use Hyperf\ExceptionHandler\Formatter\FormatterInterface;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Throwable;
|
||||
@ -31,6 +32,7 @@ use function Hyperf\Coroutine\run;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CoroutineTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
@ -68,9 +70,7 @@ class CoroutineTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @group NonCoroutine
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
|
||||
public function testCoroutineInTopCoroutine()
|
||||
{
|
||||
run(function () {
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Coroutine;
|
||||
|
||||
use Hyperf\Coroutine\Coroutine;
|
||||
use Hyperf\Engine\Channel;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Swoole\Runtime;
|
||||
|
||||
@ -25,6 +26,7 @@ use function Hyperf\Coroutine\run;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class FunctionTest extends TestCase
|
||||
{
|
||||
public function testReturnOfGo()
|
||||
@ -38,9 +40,7 @@ class FunctionTest extends TestCase
|
||||
$this->assertSame('Hyperf', $uniqid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group NonCoroutine
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
|
||||
public function testRun()
|
||||
{
|
||||
$asserts = [
|
||||
|
@ -13,6 +13,7 @@ namespace HyperfTest\Coroutine;
|
||||
|
||||
use Hyperf\Coroutine\Locker;
|
||||
use Hyperf\Engine\Channel;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function Hyperf\Coroutine\go;
|
||||
@ -21,6 +22,7 @@ use function Hyperf\Coroutine\go;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class LockerTest extends TestCase
|
||||
{
|
||||
public function testLockAndUnlock()
|
||||
|
@ -23,8 +23,9 @@ use function Hyperf\Coroutine\parallel;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @covers \Hyperf\Coroutine\Parallel
|
||||
* @coversNothing
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Coroutine\Parallel::class)]
|
||||
class ParallelTest extends TestCase
|
||||
{
|
||||
public function testParallel()
|
||||
|
@ -12,6 +12,7 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Coroutine;
|
||||
|
||||
use Hyperf\Coroutine\WaitGroup;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Swoole\Coroutine;
|
||||
|
||||
@ -19,6 +20,7 @@ use Swoole\Coroutine;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class WaitGroupTest extends TestCase
|
||||
{
|
||||
public function testWaitAgain()
|
||||
|
@ -17,6 +17,7 @@ use Hyperf\Coroutine\Exception\WaitTimeoutException;
|
||||
use Hyperf\Coroutine\Waiter;
|
||||
use Hyperf\Engine\Channel;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use RuntimeException;
|
||||
@ -27,6 +28,7 @@ use function Hyperf\Coroutine\wait;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class WaiterTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
|
@ -14,12 +14,14 @@ namespace HyperfTest\Crontab;
|
||||
use Hyperf\Crontab\Annotation\Crontab;
|
||||
use HyperfTest\Crontab\Stub\FooCron;
|
||||
use InvalidArgumentException;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CrontabAnnotationTest extends TestCase
|
||||
{
|
||||
public function testCallableNotExist()
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Crontab;
|
||||
use Hyperf\Crontab\Crontab;
|
||||
use Hyperf\Crontab\CrontabManager;
|
||||
use Hyperf\Crontab\Parser;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use function Hyperf\Tappable\tap;
|
||||
@ -22,6 +23,7 @@ use function Hyperf\Tappable\tap;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CrontabManagerTest extends TestCase
|
||||
{
|
||||
public function testCrontabRegister()
|
||||
|
@ -26,6 +26,7 @@ use Hyperf\Support\Reflection\ClassInvoker;
|
||||
use HyperfTest\Crontab\Stub\FooCron;
|
||||
use HyperfTest\Crontab\Stub\FooCron2;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
@ -33,6 +34,7 @@ use Psr\Container\ContainerInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CrontabRegisterListenerTest extends TestCase
|
||||
{
|
||||
protected $prevContainer;
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Crontab;
|
||||
|
||||
use Hyperf\Crontab\Crontab;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CrontabTest extends TestCase
|
||||
{
|
||||
public function testCrontab()
|
||||
|
Binary file not shown.
@ -12,6 +12,7 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Crontab;
|
||||
|
||||
use Hyperf\Crontab\Parser;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionMethod;
|
||||
|
||||
@ -19,6 +20,7 @@ use ReflectionMethod;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ParserCronNumberTest extends TestCase
|
||||
{
|
||||
protected $timezone;
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\Crontab;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Hyperf\Crontab\Parser;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ParserTest extends TestCase
|
||||
{
|
||||
protected $timezone;
|
||||
|
@ -15,12 +15,14 @@ use Hyperf\Crontab\CrontabManager;
|
||||
use Hyperf\Crontab\Parser;
|
||||
use Hyperf\Crontab\Scheduler;
|
||||
use Hyperf\Support\Reflection\ClassInvoker;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class SchedulerTest extends TestCase
|
||||
{
|
||||
public function testGetSchedules()
|
||||
|
@ -15,14 +15,14 @@ use Hyperf\Coroutine\Coroutine;
|
||||
use Hyperf\Dag\Dag;
|
||||
use Hyperf\Dag\Vertex;
|
||||
use Hyperf\Engine\Channel;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internalcomp
|
||||
* @coversNothing
|
||||
*
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DagTest extends TestCase
|
||||
{
|
||||
public function testComplexExample()
|
||||
|
@ -23,12 +23,14 @@ use Hyperf\Database\Schema\Schema;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use HyperfTest\Database\PgSQL\Stubs\ContainerStub;
|
||||
use Mockery as m;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabasePostgresBuilderTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Database\PgSQL\Cases;
|
||||
|
||||
use Hyperf\Database\PgSQL\Query\Processors\PostgresProcessor;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabasePostgresProcessorTest extends TestCase
|
||||
{
|
||||
public function testProcessColumnListing()
|
||||
|
@ -15,12 +15,14 @@ use Hyperf\Database\Connection;
|
||||
use Hyperf\Database\PgSQL\Schema\Grammars\PostgresGrammar;
|
||||
use Hyperf\Database\Schema\Blueprint;
|
||||
use Mockery as m;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabasePostgresSchemaGrammarTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -12,12 +12,14 @@ declare(strict_types=1);
|
||||
namespace HyperfTest\Database\PgSQL\Cases;
|
||||
|
||||
use Hyperf\Database\PgSQL\Query\Processors\PostgresProcessor;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class PostgreSqlProcessorTest extends TestCase
|
||||
{
|
||||
public function testProcessColumnListing()
|
||||
|
@ -23,6 +23,7 @@ use Hyperf\Database\Schema\Schema;
|
||||
use Hyperf\Support\Filesystem\Filesystem;
|
||||
use HyperfTest\Database\PgSQL\Stubs\ContainerStub;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Console\Style\OutputStyle;
|
||||
|
||||
@ -30,6 +31,7 @@ use Symfony\Component\Console\Style\OutputStyle;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class PostgreSqlSwooleExtConnectionTest extends TestCase
|
||||
{
|
||||
protected Migrator $migrator;
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Database\PgSQL\DBAL;
|
||||
use Hyperf\Database\PgSQL\DBAL\Connection;
|
||||
use Hyperf\Database\PgSQL\DBAL\Result;
|
||||
use Hyperf\Database\PgSQL\DBAL\Statement;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Swoole\Coroutine\PostgreSQL;
|
||||
|
||||
@ -21,6 +22,7 @@ use Swoole\Coroutine\PostgreSQL;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConnectionTest extends TestCase
|
||||
{
|
||||
protected Connection $connection;
|
||||
|
@ -16,12 +16,14 @@ use Hyperf\Database\Query\Expression;
|
||||
use Hyperf\Database\Query\Grammars\MySqlGrammar;
|
||||
use Mockery;
|
||||
use PDO;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ConnectionTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -30,6 +30,7 @@ use Mockery as m;
|
||||
use PDO;
|
||||
use PDOException;
|
||||
use PDOStatement;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
use ReflectionClass;
|
||||
@ -38,6 +39,7 @@ use ReflectionClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseConnectionTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
@ -170,7 +172,7 @@ class DatabaseConnectionTest extends TestCase
|
||||
$pdo = $this->createMock(DatabaseConnectionTestMockPDO::class);
|
||||
$pdo->expects($this->exactly(2))
|
||||
->method('beginTransaction')
|
||||
->withConsecutive([], [])
|
||||
// ->withConsecutive([], [])
|
||||
->willReturnOnConsecutiveCalls(
|
||||
$this->throwException(new ErrorException('server has gone away')),
|
||||
true
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Database;
|
||||
use Hyperf\Database\Commands\Migrations\GenMigrateCommand;
|
||||
use Hyperf\Database\Migrations\MigrationCreator;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
use Symfony\Component\Console\Output\NullOutput;
|
||||
@ -22,6 +23,7 @@ use Symfony\Component\Console\Output\NullOutput;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseGenMigrationCommandTest extends TestCase
|
||||
{
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
|
@ -16,12 +16,14 @@ use Hyperf\Support\Filesystem\Filesystem;
|
||||
use HyperfTest\Database\Stubs\MigrationCreatorFakeMigration;
|
||||
use InvalidArgumentException;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigrationCreatorTest extends TestCase
|
||||
{
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
|
@ -15,6 +15,7 @@ use Hyperf\Database\Commands\Migrations\InstallCommand;
|
||||
use Hyperf\Database\Migrations\MigrationRepositoryInterface;
|
||||
use Mockery;
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
use Symfony\Component\Console\Output\NullOutput;
|
||||
@ -23,6 +24,7 @@ use Symfony\Component\Console\Output\NullOutput;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigrationInstallCommandTest extends TestCase
|
||||
{
|
||||
use MockeryPHPUnitIntegration;
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Database;
|
||||
use Hyperf\Database\Commands\Migrations\MigrateCommand;
|
||||
use Hyperf\Database\Migrations\Migrator;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
@ -23,6 +24,7 @@ use Symfony\Component\Console\Output\NullOutput;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigrationMigrateCommandTest extends TestCase
|
||||
{
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
|
@ -19,12 +19,14 @@ use Hyperf\Database\Migrations\DatabaseMigrationRepository;
|
||||
use Hyperf\Database\Query\Builder;
|
||||
use Hyperf\Database\Schema\Builder as SchemaBuilder;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigrationRepositoryTest extends TestCase
|
||||
{
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Database;
|
||||
use Hyperf\Database\Commands\Migrations\ResetCommand;
|
||||
use Hyperf\Database\Migrations\Migrator;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
use Symfony\Component\Console\Output\NullOutput;
|
||||
@ -22,6 +23,7 @@ use Symfony\Component\Console\Output\NullOutput;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigrationResetCommandTest extends TestCase
|
||||
{
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
|
@ -14,6 +14,7 @@ namespace HyperfTest\Database;
|
||||
use Hyperf\Database\Commands\Migrations\RollbackCommand;
|
||||
use Hyperf\Database\Migrations\Migrator;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
use Symfony\Component\Console\Output\NullOutput;
|
||||
@ -22,6 +23,7 @@ use Symfony\Component\Console\Output\NullOutput;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigrationRollbackCommandTest extends TestCase
|
||||
{
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
|
@ -25,6 +25,7 @@ use Hyperf\Database\Schema\Schema;
|
||||
use Hyperf\Stringable\Str;
|
||||
use Hyperf\Support\Filesystem\Filesystem;
|
||||
use Mockery as m;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Symfony\Component\Console\Style\OutputStyle;
|
||||
@ -33,6 +34,7 @@ use Symfony\Component\Console\Style\OutputStyle;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseMigratorIntegrationTest extends TestCase
|
||||
{
|
||||
protected $migrator;
|
||||
|
@ -18,6 +18,7 @@ use Hyperf\Contract\CastsInboundAttributes;
|
||||
use Hyperf\Database\Model\CastsValue;
|
||||
use Hyperf\Database\Model\Model;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
use stdClass;
|
||||
@ -26,6 +27,7 @@ use stdClass;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseModelCustomCastingTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
@ -21,6 +21,7 @@ use Hyperf\Database\Query\Grammars\MySqlGrammar;
|
||||
use Hyperf\Database\Query\Processors\MySqlProcessor;
|
||||
use Hyperf\Database\Query\Processors\Processor;
|
||||
use Mockery as m;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use TypeError;
|
||||
@ -29,6 +30,7 @@ use TypeError;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class DatabaseQueryBuilderTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
|
@ -20,6 +20,7 @@ use Mockery;
|
||||
use PhpParser\NodeTraverser;
|
||||
use PhpParser\ParserFactory;
|
||||
use PhpParser\PrettyPrinter\Standard;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
|
||||
@ -27,6 +28,7 @@ use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class GenModelTest extends TestCase
|
||||
{
|
||||
protected $license = '<?php
|
||||
|
@ -15,12 +15,14 @@ use Hyperf\Database\MySqlConnection;
|
||||
use Hyperf\Database\Query\Grammars\MySqlGrammar as MySqlQueryGrammar;
|
||||
use Hyperf\Database\Schema\Grammars\MySqlGrammar;
|
||||
use Hyperf\Support\Fluent;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class GrammarTest extends TestCase
|
||||
{
|
||||
public function testWrap()
|
||||
|
@ -13,12 +13,14 @@ namespace HyperfTest\Database\Model;
|
||||
|
||||
use Hyperf\Database\Model\Collection;
|
||||
use HyperfTest\Database\Stubs\ModelStub;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class CollectionTest extends TestCase
|
||||
{
|
||||
public function testMacroForCollection()
|
||||
|
@ -32,6 +32,7 @@ use HyperfTest\Database\Stubs\ModelStub;
|
||||
use Mockery;
|
||||
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
||||
use PDO;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -41,6 +42,7 @@ use function Hyperf\Collection\collect;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ModelBuilderTest extends TestCase
|
||||
{
|
||||
use MockeryPHPUnitIntegration;
|
||||
|
@ -18,6 +18,7 @@ use Hyperf\Support\Fluent;
|
||||
use HyperfTest\Database\Stubs\ModelStub;
|
||||
use LogicException;
|
||||
use Mockery as m;
|
||||
use PHPUnit\Framework\Attributes\CoversNothing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
@ -27,6 +28,7 @@ use function Hyperf\Collection\collect;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
#[CoversNothing]
|
||||
class ModelCollectionTest extends TestCase
|
||||
{
|
||||
protected function tearDown(): void
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user