Permalink
Browse files

Avoid assertType

  • Loading branch information...
1 parent 4ec95a8 commit dbf91b4f33043d2280547fc1153f83a1dc8480d2 @CloCkWeRX CloCkWeRX committed Nov 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/HTML_QuickForm_advmultiselect_TestSuite_Exception.php
@@ -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);
@@ -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.