| @@ 956-964 (lines=9) @@ | ||
| 953 | } |
|
| 954 | } |
|
| 955 | ||
| 956 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 957 | { |
|
| 958 | if (!property_exists($classOrObject, $property)) { |
|
| 959 | static::reportInvalidArgument(sprintf( |
|
| 960 | $message ?: 'Expected the property %s to exist.', |
|
| 961 | static::valueToString($property) |
|
| 962 | )); |
|
| 963 | } |
|
| 964 | } |
|
| 965 | ||
| 966 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 967 | { |
|
| @@ 966-974 (lines=9) @@ | ||
| 963 | } |
|
| 964 | } |
|
| 965 | ||
| 966 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 967 | { |
|
| 968 | if (property_exists($classOrObject, $property)) { |
|
| 969 | static::reportInvalidArgument(sprintf( |
|
| 970 | $message ?: 'Expected the property %s to not exist.', |
|
| 971 | static::valueToString($property) |
|
| 972 | )); |
|
| 973 | } |
|
| 974 | } |
|
| 975 | ||
| 976 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 977 | { |
|