Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/237.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PhpUnit如何运行--使用多个条件筛选_Php_Filter_Phpunit - Fatal编程技术网

PhpUnit如何运行--使用多个条件筛选

PhpUnit如何运行--使用多个条件筛选,php,filter,phpunit,Php,Filter,Phpunit,我见过 我在应用过滤器方面没有问题,例如,--filter=SomeTest,但是我希望能够在一个命令行中检查许多测试文件,例如,--filter=SomeTest,SomeOtherTest,但这不起作用 有什么方法可以从命令行执行此操作吗?这很有效--filter=“SomeTest | SomeOtherTest” 根据以下文件: 任何正则表达式模式都可以工作。 如果该模式未包含在分隔符中,则PHPUnit会将该模式包含在/分隔符中 还帮助我阅读了正则表达式: 这里有答案:在phpuni

我见过

我在应用过滤器方面没有问题,例如,
--filter=SomeTest
,但是我希望能够在一个命令行中检查许多测试文件,例如,
--filter=SomeTest,SomeOtherTest
,但这不起作用

有什么方法可以从命令行执行此操作吗?

这很有效
--filter=“SomeTest | SomeOtherTest”

根据以下文件:

任何正则表达式模式都可以工作。 如果该模式未包含在分隔符中,则PHPUnit会将该模式包含在/分隔符中

还帮助我阅读了正则表达式:

这里有答案:在phpunit的网站上有没有记录过这种管道语法?