Skip to content
Permalink
Browse files

Adding new compatibility method for CakeTestCase

  • Loading branch information...
lorenzo committed May 9, 2010
1 parent d252fde commit c96b14541d805c350d77104b84b0885cc9e023de
Showing with 11 additions and 0 deletions.
  1. +11 −0 cake/tests/lib/cake_test_case.php
@@ -469,5 +469,16 @@ protected function expectError($expected = false, $message = '') {
protected function expectException($name = null, $message = '') {
$this->setExpectedException($name, $message);
}
/**
* Compatibility wrapper function for assertSame
* @param mixed $expected
* @param mixed $actual
* @param string $message the text to display if the assertion is not correct
* @return void
*/
protected function assertReference(&$first, &$second, $message = '') {
return $this->assertSame($first, $second, $message);
}
}
?>

0 comments on commit c96b145

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