AssertObjectHasPropertyPolyfillTrait.php 519 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of the Carbon package.
  5. *
  6. * (c) Brian Nesbitt <brian@nesbot.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Tests\PHPUnit;
  12. trait AssertObjectHasPropertyTrait
  13. {
  14. protected static function assertObjectHasProperty(string $attributeName, $object, string $message = '')
  15. {
  16. self::assertObjectHasAttribute($attributeName, $object, $message);
  17. }
  18. }