phpstorm9 phpunit debug总是找不到基类
这个是debug之后 console的提示信息 ,总是基类not found
<code>php/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 /tmp/ide-phpunit.php --no-configuration --filter "/::testGetInfo( .*)?$/" Test_User_UserControllerTest /PHPUnit/Test/User/UserControllerTest.php Testing started at 上午11:47 ... PHP Fatal error: Class 'TestCase' not found in /PHPUnit/Test/User/UserControllerTest.php on line 3 PHP Stack trace: PHP 1. {main}() /tmp/ide-phpunit.php:0 PHP 2. IDE_Base_PHPUnit_TextUI_Command::main($exit = *uninitialized*) /tmp/ide-phpunit.php:552 Fatal error: Class 'TestCase' not found in /PHPUnit/Test/User/UserControllerTest.php on line 3 PHP 3. PHPUnit_TextUI_Command->run($argv = *uninitialized*, $exit = *uninitialized*) /tmp/ide-phpunit.php:294 Call Stack: PHP 4. PHPUnit_Runner_BaseTestRunner->getTest($suiteClassName = *uninitialized*, $suiteClassFile = *uninitialized*, $suffixes = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/TextUI/Command.php:123 0.1526 361400 1. {main}() /tmp/ide-phpunit.php:0 0.2568 13365704 2. IDE_Base_PHPUnit_TextUI_Command::main(???) /tmp/ide-phpunit.php:552 PHP 5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass($suiteClassName = *uninitialized*, $suiteClassFile = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:67 0.2568 13372352 3. PHPUnit_TextUI_Command->run(???, ???) /tmp/ide-phpunit.php:294 PHP 6. PHPUnit_Runner_StandardTestSuiteLoader->load($suiteClassName = *uninitialized*, $suiteClassFile = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:123 0.2573 13389448 4. PHPUnit_Runner_BaseTestRunner->getTest(???, ???, ???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/TextUI/Command.php:123 PHP 7. PHPUnit_Util_Fileloader::checkAndLoad($filename = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/StandardTestSuiteLoader.php:39 0.2573 13389792 5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass(???, ???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:67 PHP 8. PHPUnit_Util_Fileloader::load($filename = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:38 0.2573 13390008 6. PHPUnit_Runner_StandardTestSuiteLoader->load(???, ???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:123 PHP 9. include_once() phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:56 0.2576 13547472 7. PHPUnit_Util_Fileloader::checkAndLoad(???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/StandardTestSuiteLoader.php:39 0.2576 13547664 8. PHPUnit_Util_Fileloader::load(???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:38 0.2597 13663304 9. include_once('/PHPUnit/Test/User/UserControllerTest.php') phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:56 </code>
回复内容:
这个是debug之后 console的提示信息 ,总是基类not found
<code>php/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 /tmp/ide-phpunit.php --no-configuration --filter "/::testGetInfo( .*)?$/" Test_User_UserControllerTest /PHPUnit/Test/User/UserControllerTest.php Testing started at 上午11:47 ... PHP Fatal error: Class 'TestCase' not found in /PHPUnit/Test/User/UserControllerTest.php on line 3 PHP Stack trace: PHP 1. {main}() /tmp/ide-phpunit.php:0 PHP 2. IDE_Base_PHPUnit_TextUI_Command::main($exit = *uninitialized*) /tmp/ide-phpunit.php:552 Fatal error: Class 'TestCase' not found in /PHPUnit/Test/User/UserControllerTest.php on line 3 PHP 3. PHPUnit_TextUI_Command->run($argv = *uninitialized*, $exit = *uninitialized*) /tmp/ide-phpunit.php:294 Call Stack: PHP 4. PHPUnit_Runner_BaseTestRunner->getTest($suiteClassName = *uninitialized*, $suiteClassFile = *uninitialized*, $suffixes = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/TextUI/Command.php:123 0.1526 361400 1. {main}() /tmp/ide-phpunit.php:0 0.2568 13365704 2. IDE_Base_PHPUnit_TextUI_Command::main(???) /tmp/ide-phpunit.php:552 PHP 5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass($suiteClassName = *uninitialized*, $suiteClassFile = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:67 0.2568 13372352 3. PHPUnit_TextUI_Command->run(???, ???) /tmp/ide-phpunit.php:294 PHP 6. PHPUnit_Runner_StandardTestSuiteLoader->load($suiteClassName = *uninitialized*, $suiteClassFile = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:123 0.2573 13389448 4. PHPUnit_Runner_BaseTestRunner->getTest(???, ???, ???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/TextUI/Command.php:123 PHP 7. PHPUnit_Util_Fileloader::checkAndLoad($filename = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/StandardTestSuiteLoader.php:39 0.2573 13389792 5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass(???, ???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:67 PHP 8. PHPUnit_Util_Fileloader::load($filename = *uninitialized*) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:38 0.2573 13390008 6. PHPUnit_Runner_StandardTestSuiteLoader->load(???, ???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/BaseTestRunner.php:123 PHP 9. include_once() phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:56 0.2576 13547472 7. PHPUnit_Util_Fileloader::checkAndLoad(???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Runner/StandardTestSuiteLoader.php:39 0.2576 13547664 8. PHPUnit_Util_Fileloader::load(???) phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:38 0.2597 13663304 9. include_once('/PHPUnit/Test/User/UserControllerTest.php') phar:///usr/local/php/bin/phpunit-old.phar/phpunit/Util/Fileloader.php:56 </code>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
