| @@ 760-768 (lines=9) @@ | ||
| 757 | } |
|
| 758 | } |
|
| 759 | ||
| 760 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 761 | { |
|
| 762 | if (!property_exists($classOrObject, $property)) { |
|
| 763 | static::reportInvalidArgument(sprintf( |
|
| 764 | $message ?: 'Expected the property %s to exist.', |
|
| 765 | static::valueToString($property) |
|
| 766 | )); |
|
| 767 | } |
|
| 768 | } |
|
| 769 | ||
| 770 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 771 | { |
|
| @@ 770-778 (lines=9) @@ | ||
| 767 | } |
|
| 768 | } |
|
| 769 | ||
| 770 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 771 | { |
|
| 772 | if (property_exists($classOrObject, $property)) { |
|
| 773 | static::reportInvalidArgument(sprintf( |
|
| 774 | $message ?: 'Expected the property %s to not exist.', |
|
| 775 | static::valueToString($property) |
|
| 776 | )); |
|
| 777 | } |
|
| 778 | } |
|
| 779 | ||
| 780 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 781 | { |
|