News Feed
Sections




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

Chris Hartjes:
PHPSpec and the New Wave of Testing
October 19, 2012 @ 08:42:18

Chris Hartjes, a big proponent of testing in web applications (mostly in the PHP realm so far) has a new post to his site with some of his thoughts about PHPSpec, the specification-driven testing tool recently released by the same folks who made Behat.

I think that we are witnessing the first wave of new testing tools in the PHP community that allow developers to wrap their applications in automated tests. I am familiar with the BDD-style that is being promoted in PHPSpec, through my work with Behat to create automated user acceptance tests. I think if you want a tl;dr version of PHPSpec I would tell you "write hybrid unit/integration tests using plain language".

He notes that writing code to match a specification has similar concepts to using unit testing for TDD (with something like PHPUnit). He points out a few interesting things like the use of mock objects and the fact that you'll still need to write some code to make tests work - that's unavoidable right now.

0 comments voice your opinion now!
phpspec testing functional unit specification tdd


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney's Blog: ZendCon: Best Practices Session

Padraic Brady's Blog: The PHPSpec Zend Framework App Testing Manifesto: Preamble

PHP.net: PHP 5.4 beta1 released

Noupe.com: Beautiful Forms - Design, Style, & make it work with PHP & Ajax

Arnold Daniels' Blog: Migrating from PHP4 to PHP5: A strategy for hosts


Community Events

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


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

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