News Feed
Sections




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

Genius Blog:
Advanced PHPUnit Annotations
August 19, 2009 @ 12:20:33

On the Genius.com blog today there's a new post from Bill Hewett looking at some of the advanced notations you can use in your unit testing (directives in comments starting with "@").

PHPUnit, borrowing a handy feature from Java's JUnit testing library allows you to use certain directives beginning with "@" in comments of your test or application code to access test-related functionality. These directives, known as annotations, even expose features not otherwise accessible to PHPUnit users.

He looks at a list of eight including @assert, @dataProvider and @test as well as some of the new ones coming in PHPUnit 3.4.

4 comments voice your opinion now!
advanced phpunit unittest annotations


blog comments powered by Disqus

Similar Posts

Volker Dusch's Blog: An introduction to PHPUnits @covers annotation

Brandon Savage's Blog: Interfaces Make Testing Easier

Community News: Big Nerd Ranch - PHP5 Bootcamp - 5-Day Intensive Training

Mike Lively's Blog: PHPDBUnit - Testing DB interaction with PHPUnit

Lars Tesmer's Blog: What My Co-Workers and I Learned When Trying to Write Unit Tests for PHPUnit


Community Events

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


development video opinion framework release unittest laravel language psr7 introduction series interview api voicesoftheelephpant community extension podcast laravel5 conference library

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