From c96b14541d805c350d77104b84b0885cc9e023de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Sun, 9 May 2010 16:09:57 -0430 Subject: [PATCH] Adding new compatibility method for CakeTestCase --- cake/tests/lib/cake_test_case.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index e577581f57c..e56cfbf3f13 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/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); + } } ?> \ No newline at end of file