Skip to content

Commit

Permalink
Avoid assertType
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Nov 12, 2011
1 parent 4ec95a8 commit dbf91b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/HTML_QuickForm_advmultiselect_TestSuite_Exception.php
Expand Up @@ -43,7 +43,7 @@ class HTML_QuickForm_advmultiselect_TestSuite_Exception extends PHPUnit_Framewor
*/
public function catchError($error, $code = null, $level = null)
{
$this->assertType(PHPUnit_Framework_Constraint_IsType::TYPE_OBJECT, $error);
$this->assertTrue(is_object($error));
if ($error instanceof PEAR_Error) {
if (isset($code)) {
$this->assertEquals($error->getCode(), $code);
Expand Down Expand Up @@ -100,4 +100,4 @@ public function testInvalidParametersOnSetPersistantOptions()
$this->catchError($r, HTML_QUICKFORM_ADVMULTISELECT_ERROR_INVALID_INPUT, 'exception');
}
}
?>
?>

0 comments on commit dbf91b4

Please sign in to comment.