| @@ 861-869 (lines=9) @@ | ||
| 858 | } |
|
| 859 | } |
|
| 860 | ||
| 861 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 862 | { |
|
| 863 | if (!property_exists($classOrObject, $property)) { |
|
| 864 | static::reportInvalidArgument(sprintf( |
|
| 865 | $message ?: 'Expected the property %s to exist.', |
|
| 866 | static::valueToString($property) |
|
| 867 | )); |
|
| 868 | } |
|
| 869 | } |
|
| 870 | ||
| 871 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 872 | { |
|
| @@ 871-879 (lines=9) @@ | ||
| 868 | } |
|
| 869 | } |
|
| 870 | ||
| 871 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 872 | { |
|
| 873 | if (property_exists($classOrObject, $property)) { |
|
| 874 | static::reportInvalidArgument(sprintf( |
|
| 875 | $message ?: 'Expected the property %s to not exist.', |
|
| 876 | static::valueToString($property) |
|
| 877 | )); |
|
| 878 | } |
|
| 879 | } |
|
| 880 | ||
| 881 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 882 | { |
|