|
|||
|
Hello, though being new to both the Zend Framework and PHPUnit, I am now trying to write unit tests.
Now I want to test if the latest entries are being shown, so I though I'd insert a Stub that pretends to be the "Entries" class which should extend Zend_Db_Table. However, I don't know how I should set the return value to the results. I currently have this code: PHP Code:
Thanks in advance. Last edited by Vincentt : 07-18-2007 at 01:00 PM. Reason: Solved :D |
|
|||
|
I've found the way to do it, in case anyone's interested:
PHP Code:
PHP Code:
Hope that helped anyone, Vincent |
![]() |
| Thread Tools | |
| Display Modes | |
|
|