PHPUnit在PHPStorm中不起作用

我有以下测试文件,PHPUnit网站上的一个例子.
<?PHP

require_once 'PHPUnit/Autoload.PHP';

class StackTest extends PHPUnit_Framework_TestCase
{
    public function testPushAndPop()
    {
        $stack = array();
        $this->assertEquals(0,count($stack));

        array_push($stack,'foo');
        $this->assertEquals('foo',$stack[count($stack)-1]);
        $this->assertEquals(1,count($stack));

        $this->assertEquals('foo',array_pop($stack));
        $this->assertEquals(0,count($stack));
    }
}
?>

我试图在PHPStorm 5.0中运行它,但我收到以下错误

E:\wamp\bin\PHP\PHP5.3.13\PHP.exe C:\Users\<user>\AppData\Local\Temp\ide-PHPunit.PHP --no-configuration StackTest E:\wamp\www\renting\tests\StackTest.PHP
Testing started at 03:37 ...

SCREAM:  Error suppression ignored for
Warning: require_once(PHPUnit/Runner/Version.PHP): Failed to open stream: No such file or directory in C:\Users\<user>\AppData\Local\Temp\ide-PHPunit.PHP on line 166

任何想法为什么它要去C:当我设置包含路径到E:?

解决了!

似乎某些依赖存在问题,特别是pear.symfony.com/Yaml.

解决它做:

pear channel-discover pear.symfony.com
pear install pear.symfony.com/Yaml
pear channel-discover pear.PHPunit.de
pear install --alldeps pear.PHPunit.de/PHPUnit

解决方案的想法来自:How do I correctly install PHPUnit with PEAR?

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...