Skip to content
Permalink
Browse files

Adding wrapper for assertIsA() assertion in simpletest.

  • Loading branch information...
markstory committed May 22, 2010
1 parent cd4e634 commit 326f33f9c6d595ba9b7ca56e3e109d1a1d7fb568
Showing with 13 additions and 1 deletion.
  1. +13 −1 cake/tests/lib/cake_test_case.php
@@ -477,10 +477,22 @@ protected function expectException($name = 'Exception', $message = '') {
* @param string $message the text to display if the assertion is not correct
* @return void
*/
protected function assertReference(&$first, &$second, $message = '') {
protected function assertReference(&$first, &$second, $message = '') {
return $this->assertSame($first, $second, $message);
}
/**
* Compatibility wrapper for assertIsA
*
* @param string $object
* @param string $type
* @param string $message
* @return void
*/
protected function assertIsA($object, $type, $message = '') {
return $this->assertType($type, $object, $message);
}
/**
* Compatibility function to test if value is between an acceptable range
* @param mixed $value

0 comments on commit 326f33f

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