You are here

public function NumericComparatorTest::testAssertEqualsFails in Zircon Profile 8.0

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

@covers ::assertEquals @dataProvider assertEqualsFailsProvider

File

vendor/sebastian/comparator/tests/NumericComparatorTest.php, line 115

Class

NumericComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\NumericComparator

Namespace

SebastianBergmann\Comparator

Code

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