22 Dec, 2008

PHP is becoming better day by day. As I proceed in my path of catching up with recent developments in PHP, I see more and more of adaption in PHP from JEE(Java Enterprise Edition) world. To begin with, I stumbled upon the unit testing framework PHPUnit. The amount of familiarity with the J2EE world is simply amazing.

Following table highlights this on various aspects of PHPUnit.

PHPUnit belongs to xUnit family, same as that of the jUnit. PHPUnit not only provides various functions to assert values but also allows many complex operations possible through annotations. PHPUnit provides a lot of extensions, such as for database testing, performance testing. The Database testing extension provided by PHPUnit is very similar to that of what is provided by Dbunit. Both follow similar approaches of seeding the database initially, and then after code execution ensuring that expected data is found in the database. If one has some experience with mocking frameworks in Java such as EasyMock, then working with mock testing with PHPUnit would be a cakewalk. The comfort of migration extends to the level of acceptance testing, when one uses Selenium with PHPUnit.
PHPUnit is one of the many available testing frameworks in PHP world, and testing is one of the many areas where I see commonality between the two worlds(J2EE and PHP). The major reason of the commonality has come because of the inclusion of the best practices in the PHP world and also adapting helpful frameworks from the J2EE world. As I proceed further on my path ahead, I would be sharing my learning with you all.

Newest Most Voted
Inline Feedbacks
View all comments
Sunil Prakash Inteti
13 years ago

There is no good support for IDE tooling for PHP as in Java. PHPEclipse is available with very minimal facilities for refactoring. you cannot do things like ( ctrl + 1 ) in PHPEclipse. There is no proper integration of PHPUnit with PHPEclipse. This is a headache during development esp for a person coming from JAVA to PHP5.


[…] JEE to PHPEE Related ArticlesBookmarksTags There are no related articles. Digg it Stumble […]

Balaji D Loganathan
13 years ago

Hi Sunil,
May be you can have a look at new release of PHP editor under Eclipse

Explore related posts