| @@ 982-990 (lines=9) @@ | ||
| 979 | } |
|
| 980 | } |
|
| 981 | ||
| 982 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 983 | { |
|
| 984 | if (!property_exists($classOrObject, $property)) { |
|
| 985 | static::reportInvalidArgument(sprintf( |
|
| 986 | $message ?: 'Expected the property %s to exist.', |
|
| 987 | static::valueToString($property) |
|
| 988 | )); |
|
| 989 | } |
|
| 990 | } |
|
| 991 | ||
| 992 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 993 | { |
|
| @@ 992-1000 (lines=9) @@ | ||
| 989 | } |
|
| 990 | } |
|
| 991 | ||
| 992 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 993 | { |
|
| 994 | if (property_exists($classOrObject, $property)) { |
|
| 995 | static::reportInvalidArgument(sprintf( |
|
| 996 | $message ?: 'Expected the property %s to not exist.', |
|
| 997 | static::valueToString($property) |
|
| 998 | )); |
|
| 999 | } |
|
| 1000 | } |
|
| 1001 | ||
| 1002 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 1003 | { |
|