ci-phpunit-test:将PHPUnit与CodeIgniter 3.x结合使用的更简单方法

时间:2021-04-28 08:23:10
【文件属性】:
文件名称:ci-phpunit-test:将PHPUnit与CodeIgniter 3.x结合使用的更简单方法
文件大小:1.49MB
文件格式:ZIP
更新时间:2021-04-28 08:23:10
codeigniter phpunit testing-tools monkey-patching codeigniter3 适用于CodeIgniter 3.x的ci-phpunit-test 将PHPUnit与 3.x结合使用的更简单方法。 您根本不需要修改CodeIgniter核心文件。 您可以轻松编写控制器测试。 也许没有什么是不可测试的。 有据可查。 要求 PHP 7.3或更高版本如果使用Monkey Patching,则必须使用PHP-Parser 4.2或更高版本作为Composer依赖项。 CodeIgniter 3.x 如果要升级到CodeIgniter4,请参阅 。 PHPUnit 9.3或更高版本 如果你想使用PHPUnit 9.2或更早版本,请使用CI-PHPUnit的测试 。 可选的 NetBeans 转到“项目属性”>“测试”>“ PHPUnit” ,选中“使用自定义测试套件”复选框,然后选择“ application/tests/_ci_phpunit_test/Tes

网友评论