News Feed
Sections




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

Paul Jones' Blog:
Solar - Modified Testing Strategy
February 01, 2006 @ 07:16:20

Paul Jones has an update today onm his blog concerning the Solar Framework and some of the testing strategies surrounding it.

In the current release of .phpt test format, which is supported very well by Greg Beaver's "pear run-tests" code. The .phpt testing strategy compares the output of a test script to an expected output string, and passes if the outputs match.

Inspired by Greg's PEAR_PHPTest class, I've developed a bare-bones Solar_Test_Assert class that tests assertions and throws PHP5 exceptions on assertion failures. Add to that a quick hack to run all tests at once recursively through subdirectories (courtesy of the "pear run-tests -r" switch), and you get a convenient all-at-once testing tool for Solar.

He mentions also rewriting the previous Solar tests to match this new structure as well...

0 comments voice your opinion now!
solar modified testing strategy PEAR PEAR_PHPTest solar modified testing strategy PEAR PEAR_PHPTest


blog comments powered by Disqus

Similar Posts

Greg Beaver's Blog: phar gets a major speed boost with version 1.2.1

PHPFreaks.com: Design Patterns - Strategy/Bridge, Value Object, Singleton (Registry)

Community News: Latest PEAR Releases for 12.11.2006

Greg Beaver\'s Blog: How can you help out with PEAR or phpDocumentor?

Zend Developer Zone: Building AJAX Applications with PHP and HTML_AJAX


Community Events





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


release symfony series opinion podcast laravel community version configure composer voicesoftheelephpant interview conference introduction language unittest framework list threedevsandamaybe api

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