Fixing assertIdentical wrapper as assertIdentical used to type check, much like assertSame does.

This commit is contained in:
mark_story 2010-06-27 22:48:30 -04:00
parent 139c377e09
commit 16b7d3b156

View file

@ -382,7 +382,7 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
* @return void
*/
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
*/
protected function assertNotIdentical($expected, $actual, $message = '') {
return $this->assertNotEquals($expected, $actual, $message);
return $this->assertNotSame($expected, $actual, $message);
}
/**
* Compatibility wrapper function for assertNotRegExp