|
From: Douglas H. <dh...@gm...> - 2008-11-09 01:55:49
|
I find mock functions useful because many times I'm writing code that interfaces with functions and not other objects. I found I could mock functions with the library http://code.google.com/p/php-mock-function/ without requiring runkit. Instead I run my tests each in their own process and control the include files and it works great. The php-mock-function library is very alpha and hasn't taken off. Anyway, I just want to start a conversation on the subject. What are others using? Reference http://www.workhabit.com/labs/mock-function-testing-drupal |