Unit Test json output in Zend Framework
Posted
by lyle
on Stack Overflow
See other posts from Stack Overflow
or by lyle
Published on 2010-04-05T03:54:11Z
Indexed on
2010/04/05
4:03 UTC
Read the original article
Hit count: 299
The Zend Tutorial lists many assertions to check the output generated by a request.
http://framework.zend.com/manual/en/zend.test.phpunit.html
But they all seem to assume that the output is html. I need to test json output instead.
Are there any assertions helpful to check json, or is there at least a generic way to make assertions against the output? Anything that doesn't rely on the request outputting html?
© Stack Overflow or respective owner