我有以下测试文件,PHPUnit网站上的一个例子.
原文链接:https://www.f2er.com/php/134309.html<?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:?