markdown 如何在Behat FeatureContext中使用PHPUnit断言

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何在Behat FeatureContext中使用PHPUnit断言相关的知识,希望对你有一定的参考价值。

1. `composer require --dev phpunit/phpunit`
2. Below all the "use" statements at the beginning of the FeatureContext.php, just add the line   
   `require_once __DIR__.'/../../vendor/phpunit/phpunit/src/Framework/Assert/Functions.php';`   
   
Then you can use any of the PHPUnit assertions :)

以上是关于markdown 如何在Behat FeatureContext中使用PHPUnit断言的主要内容,如果未能解决你的问题,请参考以下文章