mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding new compatibility method for CakeTestCase
This commit is contained in:
parent
d252fdeb52
commit
c96b14541d
1 changed files with 11 additions and 0 deletions
|
@ -469,5 +469,16 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
|
||||||
protected function expectException($name = null, $message = '') {
|
protected function expectException($name = null, $message = '') {
|
||||||
$this->setExpectedException($name, $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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue