| @@ 819-827 (lines=9) @@ | ||
| 816 | } |
|
| 817 | } |
|
| 818 | ||
| 819 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 820 | { |
|
| 821 | if (!property_exists($classOrObject, $property)) { |
|
| 822 | static::reportInvalidArgument(sprintf( |
|
| 823 | $message ?: 'Expected the property %s to exist.', |
|
| 824 | static::valueToString($property) |
|
| 825 | )); |
|
| 826 | } |
|
| 827 | } |
|
| 828 | ||
| 829 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 830 | { |
|
| @@ 829-837 (lines=9) @@ | ||
| 826 | } |
|
| 827 | } |
|
| 828 | ||
| 829 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 830 | { |
|
| 831 | if (property_exists($classOrObject, $property)) { |
|
| 832 | static::reportInvalidArgument(sprintf( |
|
| 833 | $message ?: 'Expected the property %s to not exist.', |
|
| 834 | static::valueToString($property) |
|
| 835 | )); |
|
| 836 | } |
|
| 837 | } |
|
| 838 | ||
| 839 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 840 | { |
|