| @@ 921-929 (lines=9) @@ | ||
| 918 | } |
|
| 919 | } |
|
| 920 | ||
| 921 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 922 | { |
|
| 923 | if (!property_exists($classOrObject, $property)) { |
|
| 924 | static::reportInvalidArgument(sprintf( |
|
| 925 | $message ?: 'Expected the property %s to exist.', |
|
| 926 | static::valueToString($property) |
|
| 927 | )); |
|
| 928 | } |
|
| 929 | } |
|
| 930 | ||
| 931 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 932 | { |
|
| @@ 931-939 (lines=9) @@ | ||
| 928 | } |
|
| 929 | } |
|
| 930 | ||
| 931 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 932 | { |
|
| 933 | if (property_exists($classOrObject, $property)) { |
|
| 934 | static::reportInvalidArgument(sprintf( |
|
| 935 | $message ?: 'Expected the property %s to not exist.', |
|
| 936 | static::valueToString($property) |
|
| 937 | )); |
|
| 938 | } |
|
| 939 | } |
|
| 940 | ||
| 941 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 942 | { |
|