You are here

public function ExceptionComparatorTest::testAssertEqualsSucceeds in Zircon Profile 8.0

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

@covers ::assertEquals @dataProvider assertEqualsSucceedsProvider

File

vendor/sebastian/comparator/tests/ExceptionComparatorTest.php, line 111

Class

ExceptionComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ExceptionComparator

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');
}