Unit Test json output in Zend Framework
- by lyle
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?