我的设置如下:
class MyTest extends PHPUnit_Framework_TestCase
{
// More tests before
public function testOne()
{
// Assertions
return $value;
}
/**
* @depends testOne
*/
public function testTwo($value)
{
// Assertions
}
// More tests after
}
我想专注于testTwo,但当我执行phpunit --filter testTwo
时,我会收到以下信息:
This test depends on "MyTest::testOne" to pass.
No tests executed!
我的问题:是否有一种方法可以运行一个测试及其所有依赖项?