| @@ 27-39 (lines=13) @@ | ||
| 24 | * @param bool $canonicalize |
|
| 25 | * @param bool $ignoreCase |
|
| 26 | */ |
|
| 27 | public static function assertEquals( |
|
| 28 | $expected, |
|
| 29 | $actual, |
|
| 30 | $message = '', |
|
| 31 | $delta = 0.0, |
|
| 32 | $maxDepth = 10, |
|
| 33 | $canonicalize = false, |
|
| 34 | $ignoreCase = false |
|
| 35 | ) { |
|
| 36 | $constraint = self::equalTo($expected, $delta, $maxDepth, $canonicalize, $ignoreCase); |
|
| 37 | ||
| 38 | \PHPUnit_Framework_Assert::assertThat($actual, $constraint, $message); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param mixed $expected |
|
| @@ 50-64 (lines=15) @@ | ||
| 47 | * @param bool $canonicalize |
|
| 48 | * @param bool $ignoreCase |
|
| 49 | */ |
|
| 50 | public static function assertNotEquals( |
|
| 51 | $expected, |
|
| 52 | $actual, |
|
| 53 | $message = '', |
|
| 54 | $delta = 0.0, |
|
| 55 | $maxDepth = 10, |
|
| 56 | $canonicalize = false, |
|
| 57 | $ignoreCase = false |
|
| 58 | ) { |
|
| 59 | $constraint = new \PHPUnit_Framework_Constraint_Not( |
|
| 60 | self::equalTo($expected, $delta, $maxDepth, $canonicalize, $ignoreCase) |
|
| 61 | ); |
|
| 62 | ||
| 63 | \PHPUnit_Framework_Assert::assertThat($actual, $constraint, $message); |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @param mixed $needle |
|