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