Skip to content

Commit

Permalink
Adding wrapper for assertIsA() assertion in simpletest.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 22, 2010
1 parent cd4e634 commit 326f33f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cake/tests/lib/cake_test_case.php
Expand Up @@ -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
Expand Down

0 comments on commit 326f33f

Please sign in to comment.