发生错误时以及在debugmode中运行PHPUnit测试时激活断点

时间:2015-08-21 19:10:03

标签: php selenium selenium-webdriver phpunit

过去我已经创建了几个C#单元测试,我可以在发生特定错误时和在debugmode中运行时激活断点。这段代码是这样的:

if(System.Diagnostics.Debugger.IsAttached)
  System.Diagnostics.Debugger.Break();

但现在我想在PHPUnitSelenium Webdriver)中做同样的事情。有谁知道怎么做?它甚至可能吗?

0 个答案:

没有答案