You are here

public function ResourceComparatorTest::testAssertEqualsSucceeds in Zircon Profile 8

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

@covers ::assertEquals @dataProvider assertEqualsSucceedsProvider

File

vendor/sebastian/comparator/tests/ResourceComparatorTest.php, line 97

Class

ResourceComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ResourceComparator

Namespace

SebastianBergmann\Comparator

Code

public function testAssertEqualsSucceeds($expected, $actual) {
  $exception = null;
  try {
    $this->comparator
      ->assertEquals($expected, $actual);
  } catch (ComparisonFailure $exception) {
  }
  $this
    ->assertNull($exception, 'Unexpected ComparisonFailure');
}