| @@ 762-770 (lines=9) @@ | ||
| 759 | } | |
| 760 | } | |
| 761 | ||
| 762 | public static function methodExists($classOrObject, $method, $message = '') | |
| 763 |     { | |
| 764 |         if (!method_exists($classOrObject, $method)) { | |
| 765 | static::reportProblem(sprintf( | |
| 766 | $message ?: 'Expected the method %s to exist.', | |
| 767 | static::valueToString($method) | |
| 768 | )); | |
| 769 | } | |
| 770 | } | |
| 771 | ||
| 772 | public static function methodNotExists($classOrObject, $method, $message = '') | |
| 773 |     { | |
| @@ 772-780 (lines=9) @@ | ||
| 769 | } | |
| 770 | } | |
| 771 | ||
| 772 | public static function methodNotExists($classOrObject, $method, $message = '') | |
| 773 |     { | |
| 774 |         if (method_exists($classOrObject, $method)) { | |
| 775 | static::reportProblem(sprintf( | |
| 776 | $message ?: 'Expected the method %s to not exist.', | |
| 777 | static::valueToString($method) | |
| 778 | )); | |
| 779 | } | |
| 780 | } | |
| 781 | ||
| 782 | public static function keyExists($array, $key, $message = '') | |
| 783 |     { | |