Skip to content
Permalink
Browse files

Fixing assertIdentical wrapper as assertIdentical used to type check,…

… much like assertSame does.
  • Loading branch information...
markstory committed Jun 28, 2010
1 parent 139c377 commit 16b7d3b15650f3a03e8a70a3343f65dbb41f9b21
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/lib/cake_test_case.php
@@ -382,7 +382,7 @@ protected function assertPattern($pattern, $string, $message = '') {
* @return void
*/
protected function assertIdentical($expected, $actual, $message = '') {
return $this->assertEquals($expected, $actual, $message);
return $this->assertSame($expected, $actual, $message);
}
/**
@@ -393,7 +393,7 @@ protected function assertIdentical($expected, $actual, $message = '') {
* @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

0 comments on commit 16b7d3b

Please sign in to comment.
You can’t perform that action at this time.