You are here

public function SplObjectStorageComparatorTest::testAssertEqualsSucceeds in Zircon Profile 8.0

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

@covers ::assertEquals @dataProvider assertEqualsSucceedsProvider

File

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

Class

SplObjectStorageComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\SplObjectStorageComparator

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