You are here

public function ObjectComparatorTest::testAssertEqualsFails in Zircon Profile 8

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

@covers ::assertEquals @dataProvider assertEqualsFailsProvider

File

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

Class

ObjectComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ObjectComparator

Namespace

SebastianBergmann\Comparator

Code

public function testAssertEqualsFails($expected, $actual, $message, $delta = 0.0) {
  $this
    ->setExpectedException('SebastianBergmann\\Comparator\\ComparisonFailure', $message);
  $this->comparator
    ->assertEquals($expected, $actual, $delta);
}