Archive for the ‘simpletest’ Category

Download a web page to a local directory that mirrors its url path - wget file command on Linux

Monday, October 17th, 2011

I was doing some work on my web site and I was about to make some big …

Setting the referrer in SimpleTest web tests - faking the HTTP_REFERER

Thursday, April 8th, 2010

Sometimes you might want to make a PHP web page do different things depending on the value …

How to Unit-Test for Expected Exception Thrown in Simpletest - *The* Answer

Saturday, January 16th, 2010

I keep forgetting how to assert that an Exception is going to be thrown in Simpletest version …

Simpletest expectation class that ignores whitespace in Mock Zend Db Queries

Sunday, January 18th, 2009

I was trying out Simpletest (unit testing framework) using a mock Zend Db connection that expected …