@@ 889-897 (lines=9) @@ | ||
886 | } |
|
887 | } |
|
888 | ||
889 | public static function propertyExists($classOrObject, $property, $message = '') |
|
890 | { |
|
891 | if (!property_exists($classOrObject, $property)) { |
|
892 | static::reportInvalidArgument(sprintf( |
|
893 | $message ?: 'Expected the property %s to exist.', |
|
894 | static::valueToString($property) |
|
895 | )); |
|
896 | } |
|
897 | } |
|
898 | ||
899 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
900 | { |
|
@@ 899-907 (lines=9) @@ | ||
896 | } |
|
897 | } |
|
898 | ||
899 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
900 | { |
|
901 | if (property_exists($classOrObject, $property)) { |
|
902 | static::reportInvalidArgument(sprintf( |
|
903 | $message ?: 'Expected the property %s to not exist.', |
|
904 | static::valueToString($property) |
|
905 | )); |
|
906 | } |
|
907 | } |
|
908 | ||
909 | public static function methodExists($classOrObject, $method, $message = '') |
|
910 | { |