mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing assertIdentical wrapper as assertIdentical used to type check, much like assertSame does.
This commit is contained in:
parent
139c377e09
commit
16b7d3b156
1 changed files with 2 additions and 2 deletions
|
@ -382,7 +382,7 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function assertIdentical($expected, $actual, $message = '') {
|
protected function assertIdentical($expected, $actual, $message = '') {
|
||||||
return $this->assertEquals($expected, $actual, $message);
|
return $this->assertSame($expected, $actual, $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -393,7 +393,7 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function assertNotIdentical($expected, $actual, $message = '') {
|
protected function assertNotIdentical($expected, $actual, $message = '') {
|
||||||
return $this->assertNotEquals($expected, $actual, $message);
|
return $this->assertNotSame($expected, $actual, $message);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Compatibility wrapper function for assertNotRegExp
|
* Compatibility wrapper function for assertNotRegExp
|
||||||
|
|
Loading…
Reference in a new issue