News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

The PHP.cc Blog:
PHPUnit 4.0 Code Coverage Improvements
March 10, 2014 @ 10:47:41

The latest version of the popular PHP unit testing tool PHPUnit has officially been released (version 4.0.0) and comes with some nice improvements. In this post to the PHPcc blog Sebastian Bergmann talks about enhancements in one area - code coverage reporting.

One of the highlights of PHPUnit 4.0, which was released last week, is an improvement of the @covers annotation and the addition of the @uses annotation for better code coverage analysis.

He includes a few simple code snippets showing you how the "@covers" annotation has been working and how it can be used in both strict and non-strict modes. He also introduces the "@uses" annotation to define which objects the test is using and how the two interact. He finishes off the post with a mention of the "--strict-coverage" command line flag (or the more general "--strict").

0 comments voice your opinion now!
code coverage improvements phpunit unittest

Link: http://thephp.cc/viewpoints/blog/2014/03/phpunit-4-0-code-coverage-improvements

blog comments powered by Disqus

Similar Posts

Chris Hartjes: The Grumpy Programmer's PHPUnit Cookbook

Amit Singh's Blog: Installing PEAR and PHPUnit on WAMP and Windows 7

Alex Inführ: PHP non alpha numeric 7 and 6 char code

NetTuts.com: Testing your PHP Codebase with EnhancePHP

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 4


Community Events

Don't see your event here?
Let us know!


api opinion version interview laravel language community laravel5 library example unittest podcast release extension framework php7 conference introduction voicesoftheelephpant series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework