@@ 742-750 (lines=9) @@ | ||
739 | } |
|
740 | } |
|
741 | ||
742 | public static function propertyExists($classOrObject, $property, $message = '') |
|
743 | { |
|
744 | if (!property_exists($classOrObject, $property)) { |
|
745 | static::reportInvalidArgument(sprintf( |
|
746 | $message ?: 'Expected the property %s to exist.', |
|
747 | static::valueToString($property) |
|
748 | )); |
|
749 | } |
|
750 | } |
|
751 | ||
752 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
753 | { |
|
@@ 752-760 (lines=9) @@ | ||
749 | } |
|
750 | } |
|
751 | ||
752 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
753 | { |
|
754 | if (property_exists($classOrObject, $property)) { |
|
755 | static::reportInvalidArgument(sprintf( |
|
756 | $message ?: 'Expected the property %s to not exist.', |
|
757 | static::valueToString($property) |
|
758 | )); |
|
759 | } |
|
760 | } |
|
761 | ||
762 | public static function methodExists($classOrObject, $method, $message = '') |
|
763 | { |