@@ 459-465 (lines=7) @@ | ||
456 | * @return void |
|
457 | * @since 0.10.2 |
|
458 | */ |
|
459 | public static function assertInstanceOf($expected, $actual, $message = '') |
|
460 | { |
|
461 | if (is_callable(get_parent_class(__CLASS__) . '::') . __FUNCTION__) { |
|
462 | return parent::assertInstanceOf($expected, $actual, $message); |
|
463 | } |
|
464 | return parent::assertType($expected, $actual, $message); |
|
465 | } |
|
466 | ||
467 | /** |
|
468 | * Helper method to allow PHPUnit versions < 3.5.x |
|
@@ 477-483 (lines=7) @@ | ||
474 | * @return void |
|
475 | * @since 0.10.2 |
|
476 | */ |
|
477 | public static function assertInternalType($expected, $actual, $message = '') |
|
478 | { |
|
479 | if (is_callable(get_parent_class(__CLASS__) . '::') . __FUNCTION__) { |
|
480 | return parent::assertInternalType($expected, $actual, $message); |
|
481 | } |
|
482 | return parent::assertType($expected, $actual, $message); |
|
483 | } |
|
484 | ||
485 | /** |
|
486 | * Creates a mocked class instance without calling the constructor. |