| @@ 806-814 (lines=9) @@ | ||
| 803 | } |
|
| 804 | } |
|
| 805 | ||
| 806 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 807 | { |
|
| 808 | if (!property_exists($classOrObject, $property)) { |
|
| 809 | static::reportInvalidArgument(sprintf( |
|
| 810 | $message ?: 'Expected the property %s to exist.', |
|
| 811 | static::valueToString($property) |
|
| 812 | )); |
|
| 813 | } |
|
| 814 | } |
|
| 815 | ||
| 816 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 817 | { |
|
| @@ 816-824 (lines=9) @@ | ||
| 813 | } |
|
| 814 | } |
|
| 815 | ||
| 816 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 817 | { |
|
| 818 | if (property_exists($classOrObject, $property)) { |
|
| 819 | static::reportInvalidArgument(sprintf( |
|
| 820 | $message ?: 'Expected the property %s to not exist.', |
|
| 821 | static::valueToString($property) |
|
| 822 | )); |
|
| 823 | } |
|
| 824 | } |
|
| 825 | ||
| 826 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 827 | { |
|