@@ 967-975 (lines=9) @@ | ||
964 | } |
|
965 | } |
|
966 | ||
967 | public static function methodExists($classOrObject, $method, $message = '') |
|
968 | { |
|
969 | if (!method_exists($classOrObject, $method)) { |
|
970 | static::reportInvalidArgument(sprintf( |
|
971 | $message ?: 'Expected the method %s to exist.', |
|
972 | static::valueToString($method) |
|
973 | )); |
|
974 | } |
|
975 | } |
|
976 | ||
977 | public static function methodNotExists($classOrObject, $method, $message = '') |
|
978 | { |
|
@@ 977-985 (lines=9) @@ | ||
974 | } |
|
975 | } |
|
976 | ||
977 | public static function methodNotExists($classOrObject, $method, $message = '') |
|
978 | { |
|
979 | if (method_exists($classOrObject, $method)) { |
|
980 | static::reportInvalidArgument(sprintf( |
|
981 | $message ?: 'Expected the method %s to not exist.', |
|
982 | static::valueToString($method) |
|
983 | )); |
|
984 | } |
|
985 | } |
|
986 | ||
987 | public static function keyExists($array, $key, $message = '') |
|
988 | { |