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