News Feed

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 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

Scott Mattocks: U is for Unit Tests

Sebastian Bergmann's Blog: PHPUnit 3.5 Upgrading Woes

Volker Dusch's Blog: Setting up Hudson for PHP Projects in 15 minutes

Symfony Blog: Unit Testing your Models

Sebastian Bergmann's Blog: So Long, and Thanks for all the PEARs

Community Events

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

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

All content copyright, 2015 :: - Powered by the Solar PHP Framework