From d573be16c5c6dae62671e74f83422dc78bed2708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Fri, 4 Jun 2010 23:27:05 -0430 Subject: [PATCH] Adding compatibility method assertNotIdentical --- cake/tests/lib/cake_test_case.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index 42389b3f8..effd242c7 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/cake/tests/lib/cake_test_case.php @@ -427,6 +427,16 @@ class CakeTestCase extends PHPUnit_Framework_TestCase { } /** +* Compatibility wrapper function for assertNotEquals +* @param mixed $expected +* @param mixed $actual +* @param string $message the text to display if the assertion is not correct +* @return void +*/ + protected function assertNotIdentical($expected, $actual, $message = '') { + return $this->assertNotEquals($expected, $actual, $message); + } +/** * Compatibility wrapper function for assertNotRegExp * @param mixed $pattern a regular expression * @param string $string the text to be matched