How to Use PHP for TDD development? How can I develop TDD using common PHP frameworks such as Zend and Yii? Do you not write tests at all or do you have a standard process? How to Use PHP for TDD development? How can I develop TDD using common PHP frameworks such as Zend and Yii? Do you not write tests at all or do you have a standard process?
Reply content:
How to Use PHP for TDD development? How can I develop TDD using common PHP frameworks such as Zend and Yii? Do you not write tests at all or do you have a standard process?
If you use Yii, read the unit testing section in the manual to explain how to perform Unit tests. If you use Zend, the Manual also describes unit Testing, these are just examples of how to do unit testing, but not those of you that should do unit testing.
In fact, if you have no experience at the beginning, I think that as long as it is not a unit of a line of code, you can perform unit tests. If you do more, you will know what needs to be done and what does not need to be done.
In addition, for TDD development, we need to have a write unit test heart, instead of using some specifications to force TDD, which has no advantage except delay.