| @@ 21-33 (lines=13) @@ | ||
| 18 | /** |
|
| 19 | * @inheritdoc |
|
| 20 | */ |
|
| 21 | public static function assertEquals( |
|
| 22 | $expected, |
|
| 23 | $actual, |
|
| 24 | $message = '', |
|
| 25 | $delta = 0.0, |
|
| 26 | $maxDepth = 10, |
|
| 27 | $canonicalize = false, |
|
| 28 | $ignoreCase = false |
|
| 29 | ) { |
|
| 30 | $constraint = self::equalTo($expected, $delta, $maxDepth, $canonicalize, $ignoreCase); |
|
| 31 | ||
| 32 | PHPUnit_Framework_Assert::assertThat($actual, $constraint, $message); |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @inheritdoc |
|
| @@ 38-52 (lines=15) @@ | ||
| 35 | /** |
|
| 36 | * @inheritdoc |
|
| 37 | */ |
|
| 38 | public static function assertNotEquals( |
|
| 39 | $expected, |
|
| 40 | $actual, |
|
| 41 | $message = '', |
|
| 42 | $delta = 0.0, |
|
| 43 | $maxDepth = 10, |
|
| 44 | $canonicalize = false, |
|
| 45 | $ignoreCase = false |
|
| 46 | ) { |
|
| 47 | $constraint = new \PHPUnit_Framework_Constraint_Not( |
|
| 48 | self::equalTo($expected, $delta, $maxDepth, $canonicalize, $ignoreCase) |
|
| 49 | ); |
|
| 50 | ||
| 51 | PHPUnit_Framework_Assert::assertThat($actual, $constraint, $message); |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|