Matthimatiker / MolComponents

Library with use-at-will architecture that extends the functionality of Zend Framework 1. Main features: Improved bootstrapping with lazy loading of resources, declaration of request parameters as argument in controller actions, advanced form creation and validation, mail templates, lightweight controller testing.
Other
2 stars 0 forks source link

Controller tests: assertResponse()->containsJson() accepts empty string #73

Open Matthimatiker opened 11 years ago

Matthimatiker commented 11 years ago

Currently the Mol_Test_Assertions_HttpResponse::containsJson() assertion accepts an empty response body, which is usually not what you expect as JSON output.

Therefore, containsJson() should reject empty strings.