You are here

public function MockObjectComparatorTest::testAssertEqualsSucceeds in Zircon Profile 8

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

@covers ::assertEquals @dataProvider assertEqualsSucceedsProvider

File

vendor/sebastian/comparator/tests/MockObjectComparatorTest.php, line 141

Class

MockObjectComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\MockObjectComparator

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