The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Comparing PHPUnit2 and SimpleTest

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sebastian Bergmann

Posts: 313
Nickname: sbergmann
Registered: Sep, 2004

Sebastian Bergmann is the developer of PHPUnit.
Comparing PHPUnit2 and SimpleTest Posted: Jun 9, 2005 9:43 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Sebastian Bergmann.
Original Post: Comparing PHPUnit2 and SimpleTest
Feed Title: Sebastian Bergmann
Feed URL: http://sebastian-bergmann.de/
Feed Description: Geek by nature, PHP by choice.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Sebastian Bergmann
Latest Posts From Sebastian Bergmann

Advertisement
Helgi Þormar pointed me to a document that explains the Agavi project's rationale for choosing SimpleTest over PHPUnit.

First off, I have to say that I never really looked at SimpleTest. I hope I will have the time soon to do that. Next, let us take a look at each of their points:
  • "We can simply glob for files like *Test.php and give them to SimpleTest and it'll parse them, where as with PHPUnit2 you needed to give it an actual class."

    Wrong, there are other ways to add tests to a test suite with PHPUnit2. This will even get easier with the new addTestFile($filename) method that has been added to the PHPUnit2_Framework_TestSuite class in PHPUnit 2.3.0.

  • "Mock Objects."

    Yes, PHPUnit2 currently lacks support for Mock Objects. I recently started working on it and I hope to have it done in time for PHPUnit 2.3.0.

  • "There's no assertNotEquals() in PHPUnit2."

    assertNotEquals() will be in PHPUnit 2.3.0.

  • "Only allowed to pass objects to assertSame() in PHPUnit2."

    assertSame() asserts that two variables reference the same object. Why should assertSame() work on non-objects?

  • "The overhead of setting up the actual tests seems lighter with simpletest and we like to keep things light and simple."

    Since I have not yet looked at SimpleTest I cannot comment on this point.
Maybe users of both PHPUnit2 and SimpleTest can add a comment to this entry and explaing why they prefer the one over the other.

Read: Comparing PHPUnit2 and SimpleTest

Topic: The Business of PHP Previous Topic   Next Topic Topic: Using PHP and MagpieRSS to present Dynamic News Feeds

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use