@@ 899-907 (lines=9) @@ | ||
896 | } |
|
897 | } |
|
898 | ||
899 | public static function propertyExists($classOrObject, $property, $message = '') |
|
900 | { |
|
901 | if (!property_exists($classOrObject, $property)) { |
|
902 | static::reportInvalidArgument(sprintf( |
|
903 | $message ?: 'Expected the property %s to exist.', |
|
904 | static::valueToString($property) |
|
905 | )); |
|
906 | } |
|
907 | } |
|
908 | ||
909 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
910 | { |
|
@@ 909-917 (lines=9) @@ | ||
906 | } |
|
907 | } |
|
908 | ||
909 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
910 | { |
|
911 | if (property_exists($classOrObject, $property)) { |
|
912 | static::reportInvalidArgument(sprintf( |
|
913 | $message ?: 'Expected the property %s to not exist.', |
|
914 | static::valueToString($property) |
|
915 | )); |
|
916 | } |
|
917 | } |
|
918 | ||
919 | public static function methodExists($classOrObject, $method, $message = '') |
|
920 | { |