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:
José Lorenzo Rodríguez 2010-05-26 23:22:58 -04:30
parent 0dc627178a
commit a737b77a89

View file

@ -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);
}
/**