Skip to content

Improve XML assertions #12

@peter279k

Description

@peter279k

Introduction

We have to consider about improving XML assertions.

The official PHPUnit provides the following related XML assertions:

  • assertXmlFileEqualsXmlFile
  • assertXmlStringEqualsXmlFile
  • assertXmlStringEqualsXmlString

I think we can implement following XML assertions:

  • assertIsXmlString and assertIsXmlFile
  • assertXmlStringContainsTag
  • assertXmlStringContainsTagWithAttribute
  • assertXmlStringContainsDeclaration
  • assertXmlStringDeclaration

The missed XML assertions have been implemented because we can assert XML string/file easily/conveniently.

@adhocore, do you have any thought about this?

Any related XML assertions I think are feel free to add and mention on this issue.

  • Bug/Issue
  • Feature request
  • General stuff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions