mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding compatibility method assertNotIdentical
This commit is contained in:
parent
d04278cb8e
commit
d573be16c5
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue