Skip to content

Commit

Permalink
Adding new compatibility method for CakeTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 9, 2010
1 parent d252fde commit c96b145
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cake/tests/lib/cake_test_case.php
Expand Up @@ -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.