Difference between #3 and #4 of
TDD with PHPUnit_Story and Yii

Changes

Title unchanged

TDD with PHPUnit_Story and Yii

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

BDD, PHPUnit_Story, TDD, PHPUnit, Story, Test driven developement, behaviour driven developement

Content changed

#### Update 27.10.2011
 
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to [elvan](http://www.yiiframework.com/forum/index.php?/user/6349-elvan/ "") for pointing me to the relevant [comment](https://github.com/sebastianbergmann/phpunit/commit/6aa9183496f9bb2131d17ba08195a93a07937762#commitcomment-164598 ""). As an alternative [Behat](http://behat.org/ "") has been suggested but it seems too bloated for me TBH. There is also [PHPSpec](http://www.phpspec.net/ "") but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.
 
 
Why?
------------------
If you don't know what TDD is then check this out:
[Test-driven developement on Wikipedia](http://en.wikipedia.org/wiki/Test-driven_development "Test-driven developement on Wikipedia")
However, many people take the "Test" part of the name too seriously and they end up stuck in a place thinking "What should I test next?" instead of "What should my application do next?"
#### Test driven development is about a design!
[...]
7 0
9 followers
Viewed: 24 810 times
Version: 1.1
Category: Tutorials
Written by: sidewinder
Last updated by: sidewinder
Created on: Oct 20, 2011
Last updated: 13 years ago
Update Article

Revisions

View all history