@@ 939-947 (lines=9) @@ | ||
936 | } |
|
937 | } |
|
938 | ||
939 | public static function propertyExists($classOrObject, $property, $message = '') |
|
940 | { |
|
941 | if (!property_exists($classOrObject, $property)) { |
|
942 | static::reportInvalidArgument(sprintf( |
|
943 | $message ?: 'Expected the property %s to exist.', |
|
944 | static::valueToString($property) |
|
945 | )); |
|
946 | } |
|
947 | } |
|
948 | ||
949 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
950 | { |
|
@@ 949-957 (lines=9) @@ | ||
946 | } |
|
947 | } |
|
948 | ||
949 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
950 | { |
|
951 | if (property_exists($classOrObject, $property)) { |
|
952 | static::reportInvalidArgument(sprintf( |
|
953 | $message ?: 'Expected the property %s to not exist.', |
|
954 | static::valueToString($property) |
|
955 | )); |
|
956 | } |
|
957 | } |
|
958 | ||
959 | public static function methodExists($classOrObject, $method, $message = '') |
|
960 | { |