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