从命令行运行PHPUnit时的结果与从netbeans运行PHPUnit时的结果不同

从命令行运行PHPUnit时的结果与从netbeans运行PHPUnit时的结果不同,netbeans,laravel-4,phpunit,netbeans-8,Netbeans,Laravel 4,Phpunit,Netbeans 8,我只有一次考试 $response=$this->call('GET', '/'); $this->assertResponseOk(); 当我运行时,由于Symfony\Component\HttpKernel\Exception\NotFoundHttpException而失败 phpunit 从projectdir中的命令行,我在projectdir中有phpunit.xml(来自laravel) 但当我从Netbeans运行测试时,它通过了 我将Netbe

我只有一次考试

    $response=$this->call('GET', '/');
    $this->assertResponseOk();
当我运行时,由于Symfony\Component\HttpKernel\Exception\NotFoundHttpException而失败

phpunit
从projectdir中的命令行,我在projectdir中有phpunit.xml(来自laravel)

但当我从Netbeans运行测试时,它通过了

我将Netbeans输出命令复制到命令行

phpunit "C:\Program Files\NetBeans 8.0\php\phpunit\NetBeansSuite.php" "--run=C:\Program Files (x86)\wamp\www\platform\workbench\neyl\customers\tests;C:\Program Files (x86)\wamp\www\platform\app\tests"
而且它也有效

所以,当从netbeansuite.php调用test时,它可以工作,但不能从常规命令行调用。 甚至

失败


这怎么可能?当使用PHPUnit\u Framework\u TestSuite时,什么因素与常规cli不同?

确定。差异是由调用顺序测试引起的。 cli中的phpunit使用phpunit.xml中的testsuites,但netbeans测试不使用phpunit.xml作为testsuites,因此调用它们是为了netbeans调用它们


现在我必须弄清楚TestClass的顺序是什么导致的

可能由于phpunit的不同版本而出现此问题。如前所述,我正在通过cli调用路径中的phpunit.bat复制Netbeans testsuite,因此两个测试肯定使用相同的版本!
phpunit MyTest.php