News Feed
Sections




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

Chris Hartjes' Blog:
Metatesting Extending Your Testing Tools
April 23, 2012 @ 11:27:02

Chris Hartjes has had a few posts about "metatesting" already and in this latest article he takes the series one more step. He looks at moving outside of the current toolset and expanding on them to meet your testing needs.

While PHPUnit is awesome out of the box, it still lacks some tools that are required to do things like test protected class methods or assign values to protected class attributes. Lucky for me we have an awesome testing engineer at Kaplan named Will Parker who has shown me some ways that they have extended PHPUnit itself to make testing certain things easier.

Chris talks about things like testing protected methods (easy thanks to a helper) and checking the value of a class property. The key to both of them lies in using PHP's own Reflection functionality to alter properties on the class objects themselves.

0 comments voice your opinion now!
metatesting extend tool phpunit reflection protected property


blog comments powered by Disqus

Similar Posts

Zumba Engineering Blog: Mongounit Project Open Sourced

AjaxRay.com: Extending Zend Form Element to create customized Phone number field

DevShed: Working with Private Properties to Protect PHP 5 Class Data

DZone.com: All debugging and no testing makes the PHP programmer a dull boy

PHPFreaks.com: Protecting php applications with PHPIDS


Community Events

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


development extension conference language api laravel podcast release wordpress framework opinion laravel5 interview community library voicesoftheelephpant introduction unittest middleware series

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