gpt4 book ai didi

PHPUnit ReflectionException 方法套件不存在

转载 作者:可可西里 更新时间:2023-11-01 13:24:57 26 4
gpt4 key购买 nike

我使用的是 PHPUnit 版本 3.6.2,并且总是可以

PHP ReflectionException: Method suite does not exist in /pathTo/pear/PHPUnit/Runner/BaseTestRunner.php on line 113

运行单个测试时:

phpunit path/to/my/ClassToTest.php

PHPUnit 使用 pear 安装,我使用的是 php 5.3.6

是否有任何我应该修复的 php 配置?或者这只是 PHPUnit 应该修复的问题。

<?php

class ClassToTest extends PHPUnit_Framework_TestCase{

public function testSomething(){
$this->assertTrue(true);
}

}

最佳答案

启用 xdebug 扩展后,我偶然发现了同样的消息。

尝试将此添加到您的 php.ini 中(或将此值注释为 1 的行):

    ; 0 is actually the default value
xdebug.show_exception_trace = 0

关于PHPUnit ReflectionException 方法套件不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8305417/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com