You are here

public function DOMNodeComparatorTest::assertEqualsSucceedsProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php \SebastianBergmann\Comparator\DOMNodeComparatorTest::assertEqualsSucceedsProvider()

File

vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php, line 53

Class

DOMNodeComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\DOMNodeComparator

Namespace

SebastianBergmann\Comparator

Code

public function assertEqualsSucceedsProvider() {
  return array(
    array(
      $this
        ->createDOMDocument('<root></root>'),
      $this
        ->createDOMDocument('<root/>'),
    ),
    array(
      $this
        ->createDOMDocument('<root attr="bar"></root>'),
      $this
        ->createDOMDocument('<root attr="bar"/>'),
    ),
    array(
      $this
        ->createDOMDocument('<root><foo attr="bar"></foo></root>'),
      $this
        ->createDOMDocument('<root><foo attr="bar"/></root>'),
    ),
    array(
      $this
        ->createDOMDocument("<root>\n  <child/>\n</root>"),
      $this
        ->createDOMDocument('<root><child/></root>'),
    ),
  );
}