News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
Mocks, Stubs, And SimpleTest Wins
November 12, 2007 @ 08:49:00

In a new post today, Padraic Brady talks about some of his experience with unit testing in PHP - specifically with two of the more popular testing applications - SimpleTest and PHPUnit.

The word is that SimpleTest is moving towards PHP5 in the near future which is great news for all Mockists in PHP. When I moved to PHP, SimpleTest became the main ingredient in many a coding session up to 2 in the morning but once PHP5 gained traction and I was seduced into leaving PHP4 behind I found myself relying more heavily on PHPUnit. Not that SimpleTest is anti-PHP5 in any way (only some small things and obviously E_STRICT giving it a heart attack), but more projects I didn't control leaned heavily towards PHPUnit once PHP5 took off.

He goes on to talk about some of the differences between the two pieces of software (including Mock Object support and Stubs) and his personal feelings on how each of them works in his development experience. His interest has leaned more towards needing the Mock objects, though, so he favors SimpleTest for doing just what he needs.

0 comments voice your opinion now!
simpletest phpunit unittest mock stub object simpletest phpunit unittest mock stub object


blog comments powered by Disqus

Similar Posts

Evan Coury's Blog: Using Zend\Dbs TableGateway & HydratingResultSet to return rows as custom enties

Michael Feichtinger's Blog: HTML5 WebSockets Example

PHP in Action Blog: One behavior != one assertion

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2

Pavel Shevaev's Blog: A reliable way to serialize/unserialize objects in PHP


Community Events

Don't see your event here?
Let us know!


install podcast language voicesoftheelephpant laravel api community release php7 introduction series framework unittest interview example library laravel5 xdebug opinion extension

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework