• Home
  • RSS Feed
  • Log in

JEE to PHPEE
Posted by Saket Vishal in the early morning: December 22nd, 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.

  • Share/Bookmark

Tags: PHP, TDD
Filed under PHP, TDD, Testing | 3 Comments »



3 Responses to “JEE to PHPEE”



    Sunil Prakash Inteti Says:
    Posted at: December 22, 2008 at 9:14 am

    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 | PHP-Blog.com Says:
    Posted at: December 22, 2008 at 2:49 pm

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



    Balaji D Loganathan Says:
    Posted at: January 21, 2009 at 10:27 am

    Hi Sunil,
    May be you can have a look at new release of PHP editor under Eclipse http://www.infoq.com/news/2009/01/pdt-20-released.
    Regards
    Balaji



Leave a Reply

Click here to cancel reply.

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Archives

  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (282)
  • Agile (109)
  • General (50)
  • Testing (42)
  • Performance (42)
  • Hibernate (36)
  • Scrum (33)
  • Podcast (31)
  • Architecture (31)
  • Spring (28)
  • SOA (24)
  • Maven (22)
  • Project Management (22)
  • Middleware (23)
    • Deployment (14)
  • Flex (17)
  • JPA (17)
  • Eclipse (15)
  • Xebia Labs (15)
  • Quality Assurance (14)

Tag Cloud

    Functional Programming Spring fitnesse IntelliJ JavaOne qcon XML Agile Introduction to Agile Closures esb Ajax Xebia Groovy Poppendieck Seam Semantic Web Grails SOA Scrum Testing Maven Agile Awareness Workshop Architecture Scala Hibernate product owner Performance Lean Java