Re: [Wikitech-l] Using test doubles to test code with external dependencies

2013-03-06 Thread Rob Lanphier
On Tue, Mar 5, 2013 at 1:25 PM, Ori Livneh o...@wikimedia.org wrote: A short while ago I wrote a set of three PHP unit tests for Math that use test doubles to stub out external dependencies (in this case, the database-backed cache and the texvc executable). My intent was to demonstrate the

[Wikitech-l] Using test doubles to test code with external dependencies

2013-03-05 Thread Ori Livneh
A short while ago I wrote a set of three PHP unit tests for Math that use test doubles to stub out external dependencies (in this case, the database-backed cache and the texvc executable). My intent was to demonstrate the technique to another developer, so I commented the code extensively. It