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