You are here

public function ObjectComparatorTest::testAssertEqualsSucceeds in Zircon Profile 8.0

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

@covers ::assertEquals @dataProvider assertEqualsSucceedsProvider

File

vendor/sebastian/comparator/tests/ObjectComparatorTest.php, line 125

Class

ObjectComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ObjectComparator

Namespace

SebastianBergmann\Comparator

Code

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