News Feed
Sections




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

Mike Naberezny's Blog:
Better PHPUnit Group Annotations
September 04, 2008 @ 21:48:39

Mike Naberezny has posted about some improvements that were made to the PHPUnit testing software lately (support for TestNG-style groupings) and how, with a few of his own suggestions it was made a bit more flexible.

At my company, we typically organize our test case classes into high-level groups such as unit and functional. Method-level group annotations are inconvenient for us because we'd need to annotate every method of every test case class.

He includes an example of their use - commenting a testing class and running it through the phpunit command line tool with a call to the testing group's name.

1 comment voice your opinion now!
phpunit group annotation method high level unittest phpunit group annotation method high level unittest


blog comments powered by Disqus

Similar Posts

Zumba Engineering Blog: Incorporating Mongounit into Multi-datasource Models with Traits

Sebastian Bergmann's Blog: PHPUnit and Cyclomatic Complexity

Aaron Wormus\' Blog: PHPUnit Pocket Guide - 5 Minute Review

Dutch Web Alliance: The definitive remote debug and unittest with PHPStorm guide: part 7

Rob Allen's Blog: Unit testing controller actions with Zend_Test_PHPUnit_ControllerTestCase


Community Events





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


community list release opinion tips language series api voicesoftheelephpant bugfix introduction package install podcast deployment symfony library interview framework laravel

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