未加星标

PHPUnit 6.0.0 正式版发布,PHP 单元测试框架

字体大小 | |
[开发(php) 所属分类 开发(php) | 发布者 店小二03 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

phpUnit 开发团队宣布 PHPUnit 6.0.0 发布了。此版本添加了新功能,更改并删除了现有功能,并修复了错误。 此处 提供了详细的更改列表。

Dropping support for PHP 5.6

According to our release process , PHPUnit must be compatible with all versions of PHP that are actively supported by the PHP project.

Active support for PHP 5.6 ended on December 31, 2016. The only actively supported versions of PHP as of February, 3 2017 are PHP 7.0 and PHP 7.1.

Backwards Compatibility Issues

PHPUnit's units of code are now namespaced. For instance,PHPUnit_Framework_TestCaseis nowPHPUnit\Framework\TestCase

PHPUnit is now strict about useless tests by default. Use the--dont-report-useless-testscommandline option or thebeStrictAboutTestsThatDoNotTestAnything="false"configuration directive to disable this risky test check.

Global and super-global variables are no longer backed up before and restored after each test by default. Use the--globals-backupcommandline option or thebackupGlobals="true"configuration directive to enable this feature.

The logfile format generated using the--log-junitoption and the<log type="junit" target="..."/>configuration directive has been updated to match the current format used by JUnit . Due to this change you may need to update how your continuous integration server processes test result logfiles generated by PHPUnit.

Obtaining PHPUnit 6.0

We distribute a PHP Archive (PHAR) that contains everything you need in order to use PHPUnit. Simply download it from here , make it executable, and put it into your$PATH, for instance.

Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies.

Requirements

PHPUnit 6.0 requires PHP 7.0; using the latest version of PHP is highly recommended. The documentation has a detailed list of the PHP extensions that are required to use PHPUnit.

Support for PHPUnit 5.7

Following our release process , PHPUnit 5.7 will receive bug fixes until February 2, 2018.

End of Life for PHPUnit 4.8

Following our release process , PHPUnit 4.8 has reached End of Life as of February, 3 2017 and will no longer receive bug fixes.

If you use Chef, Puppet, or a similar tool to download and install a PHPUnit 4.8 PHP archive (PHAR) then please change the URL fromhttps://phar.phpunit.de/phpunit-old.phartohttps://phar.phpunit.de/phpunit-4.8.phar. The URLhttps://phar.phpunit.de/phpunit-old.pharwill not be offered in the future anymore. It will continue to work for now and it will always redirect to the latest version of PHPUnit 4.8.

Looking Ahead

The goal of our release process is to deliver new features into the hands of our users every two months. The next release with new features will be PHPUnit 6.1 . It is currently in development and will become stable on April 7, 2017.

PHPUnit 7

PHPUnit 7.0 , which is scheduled for February 2, 2018, will no longer support PHP 7.0.

Support for PHPUnit 6

Following our release process , PHPUnit 6 will receive bug fixes until February 8, 2019.

本文开发(php)相关术语:php代码审计工具 php开发工程师 移动开发者大会 移动互联网开发 web开发工程师 软件开发流程 软件开发工程师

主题: PHP单元测试删除
分页:12
转载请注明
本文标题:PHPUnit 6.0.0 正式版发布,PHP 单元测试框架
本站链接:http://www.codesec.net/view/532205.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 开发(php) | 评论(0) | 阅读(76)