• 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

Tags: PHP, TDD
Filed under 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.

    Reply


    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 [...]

    Reply


    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

    Reply


Leave a Reply

Click here to cancel reply.


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    Spring Lean JPA Maven Concurrency Control Oracle Eclipse lean architecture agile architectuur Hibernate JPA implementation patterns Agile lean architectuur Grails Moving to India Java ACT XML Groovy Scrum Frameworks Xebia Ajax product owner TDD Scala Javascript Flex SOA Architecture

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures