Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单元测试报错 #6553

Closed
yoyo56124 opened this issue Feb 24, 2024 · 2 comments
Closed

单元测试报错 #6553

yoyo56124 opened this issue Feb 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@yoyo56124
Copy link

Execute the command and paste the result below.
customer composer test
PHPUnit 10.5.10 by Sebastian Bergmann and contributors.

Runtime: PHP 8.3.3
Configuration: /opt/www/phpunit.xml

[ERROR] Cannot find TestCase object on call stack[63] in /opt/www/vendor/phpunit/phpunit/src/Event/Value/Test/TestMethodBuilder.php
[ERROR] #0 /opt/www/vendor/phpunit/phpunit/src/Runner/ErrorHandler.php(64): PHPUnit\Event\Code\TestMethodBuilder::fromCallStack()
#1 /opt/www/app/commons/service/CustomerServiceService.php(340): PHPUnit\Runner\ErrorHandler->__invoke()

Command: uname -a && php -v && composer info | grep hyperf && php --ri swoole
Linux 0b242eae4d45 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 Linux
PHP 8.3.3 (cli) (built: Feb 16 2024 01:31:30) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
with Zend OPcache v8.3.3, Copyright (c), by Zend Technologies
friendsofhyperf/pest-plugin-hyperf v3.1.15 The Pest Hyperf Plugin.
hyperf/amqp v3.1.9 A amqplib for hyperf.
hyperf/async-queue v3.1.9 A async queue component for hyperf.
hyperf/cache v3.1.0 A cache component for hyperf.
hyperf/code-parser v3.1.4 A code parser component for Hyperf.
hyperf/codec v3.1.4 A codec component for Hyperf.
hyperf/collection v3.1.7 Hyperf Collection package which come from illuminate/collections
hyperf/command v3.1.7 Command for hyperf
hyperf/conditionable v3.1.0 Hyperf Macroable package which come from illuminate/conditionable
hyperf/config v3.1.2 An independent component that provides configuration container.
hyperf/constants v3.1.0 A constants component for hyperf.
hyperf/context v3.1.0 A coroutine/application context library.
hyperf/contract v3.1.2 The contracts of Hyperf.
hyperf/coordinator v3.1.7 Hyperf Coordinator
hyperf/coroutine v3.1.1 Hyperf Coroutine
hyperf/database v3.1.5 A flexible database library.
hyperf/db v3.1.0
hyperf/db-connection v3.1.7 A hyperf db connection handler for hyperf/database.
hyperf/devtool v3.1.5 A Devtool for Hyperf.
hyperf/di v3.1.6 A DI for Hyperf.
hyperf/dispatcher v3.1.0 A HTTP Server for Hyperf.
hyperf/elasticsearch v3.1.0 Elasticsearch client for hyperf
hyperf/engine v2.10.4 Coroutine engine provided by swoole.
hyperf/engine-contract v1.9.1 Contract for Coroutine Engine
hyperf/event v3.1.0 an event manager that implements PSR-14.
hyperf/exception-handler v3.1.5 Exception handler for hyperf
hyperf/framework v3.1.0 A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and...
hyperf/guzzle v3.1.0 Swoole coroutine handler for guzzle
hyperf/http-message v3.1.0 microservice framework base on swoole
hyperf/http-server v3.1.6 A HTTP Server for Hyperf.
hyperf/json-rpc v3.1.0 A JSON RPC component for Hyperf RPC Server or Client.
hyperf/load-balancer v3.1.0 A load balancer library for Hyperf.
hyperf/logger v3.1.9 A logger component for hyperf.
hyperf/macroable v3.1.0 Hyperf Macroable package which come from illuminate/macroable
hyperf/memory v3.1.0 An independent component that use to operate and manage memory.
hyperf/model-cache v3.1.0 A model cache component for hyperf.
hyperf/model-listener v3.1.0 A model listener for Hyperf.
hyperf/pipeline v3.1.0 Hyperf Macroable package which come from illuminate/pipeline
hyperf/pool v3.1.0 An independent universal connection pool component.
hyperf/process v3.1.0 A process component for hyperf.
hyperf/redis v3.1.0 A redis component for hyperf.
hyperf/rpc v3.1.8 A rpc basic library for Hyperf.
hyperf/rpc-client v3.1.8 An abstract rpc server component for Hyperf.
hyperf/rpc-server v3.1.0 An abstract rpc server component for Hyperf.
hyperf/serializer v3.1.0 A serializer component for Hyperf.
hyperf/server v3.1.9 A base server library for Hyperf.
hyperf/session v3.1.0 A session library
hyperf/stdlib v3.1.0 A stdlib component for Hyperf.
hyperf/stringable v3.1.0 Hyperf Stringable package which come from illuminate/support
hyperf/support v3.1.7 A support component for Hyperf.
hyperf/tappable v3.1.0 Hyperf Macroable package which come from illuminate/tappable
hyperf/testing v3.1.3 Testing for hyperf
hyperf/tracer v3.1.8 A open tracing system implemented for Hyperf or other coroutine framework
hyperf/translation v3.1.0 An independent translation component, forked by illuminate/translation.
hyperf/utils v3.1.0 A tools package that could help developer solved the problem quickly.
hyperf/validation v3.1.9 hyperf validation

swoole

Swoole => enabled
Author => Swoole Team team@swoole.com
Version => 5.1.2
Built => Feb 24 2024 19:16:06
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 3.1.4 24 Oct 2023
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
c-ares => 1.24.0
zlib => 1.3.1
brotli => E16781312/D16781312
mutex_timedlock => enabled
pthread_barrier => enabled
async_redis => enabled
coroutine_pgsql => enabled
coroutine_odbc => enabled
coroutine_sqlite => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_fiber_mock => Off => Off
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

# Paste the result here.

Description:

Steps To Reproduce:

@yoyo56124 yoyo56124 added the bug Something isn't working label Feb 24, 2024
@limingxinleo
Copy link
Member

还有没问题没

@yoyo56124
Copy link
Author

还有没问题没

没了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants