3

I don't see this answered any where on the web, amazingly.

Unit tests in lime seem so much more simple to write than PHPUnit with all its extra boilerplate code.

Are there any definitive reasons (besides "PHPUnit is the defacto standard") for choosing one over the other?

Alexander L. Hayes
  • 3,892
  • 4
  • 13
  • 34
Theodore R. Smith
  • 21,848
  • 12
  • 65
  • 91

1 Answers1

8

PHPUnit is more Object oriented than lime, I mean in the way you write your unit tests code. PHPUnit has more functionalities ( think Selenium integration and xUnit output standards ).

Lime seems more simple with simple test cases, but when you tests are growing, it's unreadable.

I've used both, and I have no regret with the switch to Phpunit.

Moreover, for technical reasons, you should take care of the future of lime.

For info, Lime2 has been written by Bernhard Schussek, but to my mind, dev has been stopped since Symfony2 is using phpunit.

Florian Klein
  • 8,692
  • 1
  • 32
  • 42
  • 1
    +1. Though the emphasis could as well have been "Moreover, for technical reasons, *you* should take care of the future of lime". (I.e. if you like it so much, take responsibility for maintaining lime or face bitrot over time.) – Prof. Falken Feb 22 '13 at 08:08