目前,在我的Windows计算机上运行PHPUnit和协同欺骗会给我一个错误:
PHPUnit_Framework_Exception 未定义常数SIGTERM的使用-假设的“SIGTERM”
据我所知,SIGTERM是PCNTL提供的常量,在Windows中不受支持。这样,这个常量不应该用于在Windows上运行的测试。完全没有。
我的PHP设置:
PHP 5.6.17 (cli) (built: Jan 6 2016 13:28:38)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend TechnologiesPHPUnit
PHPUnit 5.7.15 共欺骗
Codeception PHP Testing Framework v2.2.9phiremock-codeception-extension v1.2.2发布于 2017-03-03 10:03:06
问题在于phiremock-codeception-extension使用SIGTERM而不检查OS/PCNTL扩展是可用的。所以我在GitHub https://github.com/mcustiel/phiremock-codeception-extension/issues/4创建了一个Bug报告。
/**
* Stops the process.
*/
public function stop()
{
$this->process->signal(SIGTERM);
$this->process->stop(3, SIGKILL);
}一旦开发人员解决了问题,我将更新这个答案。
更新
这个问题已在phiremock欺骗-扩展1.2.3中得到解决。
https://stackoverflow.com/questions/42575136
复制相似问题