@@ 968-976 (lines=9) @@ | ||
965 | } |
|
966 | } |
|
967 | ||
968 | public static function propertyExists($classOrObject, $property, $message = '') |
|
969 | { |
|
970 | if (!property_exists($classOrObject, $property)) { |
|
971 | static::reportInvalidArgument(sprintf( |
|
972 | $message ?: 'Expected the property %s to exist.', |
|
973 | static::valueToString($property) |
|
974 | )); |
|
975 | } |
|
976 | } |
|
977 | ||
978 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
979 | { |
|
@@ 978-986 (lines=9) @@ | ||
975 | } |
|
976 | } |
|
977 | ||
978 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
979 | { |
|
980 | if (property_exists($classOrObject, $property)) { |
|
981 | static::reportInvalidArgument(sprintf( |
|
982 | $message ?: 'Expected the property %s to not exist.', |
|
983 | static::valueToString($property) |
|
984 | )); |
|
985 | } |
|
986 | } |
|
987 | ||
988 | public static function methodExists($classOrObject, $method, $message = '') |
|
989 | { |