Adding compatibility method assertNotIdentical

This commit is contained in:
José Lorenzo Rodríguez 2010-06-04 23:27:05 -04:30
parent d04278cb8e
commit d573be16c5

View file

@ -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