Skip to content

Suggestion: seeResponseIsPdf() #76

@ThomasLandauer

Description

@ThomasLandauer

It would be nice to be able to assert that a response is indeed a PDF.
Right now, I'm doing it with something like:

$I->seeHttpHeader('Content-Type', 'application/pdf');
$I->seeResponseContains('%PDF-1.');

REST module has seeResponseIsJson() and seeResponseIsXml()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions