mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing bridged method assertIdentical. The corrent interpretetion in PHPUnit was assertEquals and not assertSame, as the former is to assert references to the same object
This commit is contained in:
parent
0dc627178a
commit
a737b77a89
1 changed files with 2 additions and 2 deletions
|
@ -423,14 +423,14 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Compatibility wrapper function for assertSame
|
||||
* Compatibility wrapper function for assertEquals
|
||||
* @param mixed $expected
|
||||
* @param mixed $actual
|
||||
* @param string $message the text to display if the assertion is not correct
|
||||
* @return void
|
||||
*/
|
||||
protected function assertIdentical($expected, $actual, $message = '') {
|
||||
return $this->assertSame($expected, $actual, $message);
|
||||
return $this->assertEquals($expected, $actual, $message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue