Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

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

@MatthiasMolitor

Description

@MatthiasMolitor

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions