Test failures can now be sorted in reverse, and most usefully, a new convenience method getMockWithoutInvokingTheOriginalConstructor was added to quickly create a test double without invoking the original constructor. This should help avoid tests timing out when they perform I/O as the default timeout for small tests is 1 second. Tests marked as (the default for tests that aren’t size marked) can also be marked as risky if they perform I/O. The way works has been changed – expectations for mock objects that are passed by are evaluated in the test, which is useful in those places where you expect mocked methods to be called in every dependent test. There have also been a number of improvements. Strict mode should now be invoked via a configuration file setting. These include some assertions ( SelectCount, SelectRegExp, SelectEquals, Tag, NotTag), some configuration relating to Selenium integration, and the -strict command line argument. PhpStorm 9.5 already fully supports PHP 5.6, and most PHP 7 features.įeatures marked as deprecated in the latter releases of PHPUnit 4 have now been fully removed in 5. This is great news for those who can push forward their PHP versions, but not such good news for those who are locked onto a specific version of PHP. The big news is that PHPUnit 5 will no longer support versions of PHP lower than 5.6 but it will support PHP 7. All of the new features and improvements in PHPUnit 5 are supported by PhpStorm 9.5. PHPUnit 5 has been released, and brings a number of improvements to the most widely used testing framework in PHP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |