You are here

public function DoubleComparatorTest::testAssertEqualsFails in Zircon Profile 8

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

@covers ::assertEquals @dataProvider assertEqualsFailsProvider

File

vendor/sebastian/comparator/tests/DoubleComparatorTest.php, line 127

Class

DoubleComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\DoubleComparator

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