From 3f6b2e856ea27db50dc3876c4e84b39e88da3c39 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 2 Mar 2023 17:51:34 +0000 Subject: [PATCH] tests: helpers fix --- tests/Features/Helpers.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Features/Helpers.php b/tests/Features/Helpers.php index ee34702e..90663554 100644 --- a/tests/Features/Helpers.php +++ b/tests/Features/Helpers.php @@ -10,9 +10,9 @@ it('can set/get properties on $this', function () { expect($this->user)->toBe('nuno'); }); -it('throws error if property do not exist', function () { - test()->user; -})->throws(\Whoops\Exception\ErrorException::class, 'Undefined property PHPUnit\Framework\TestCase::$user'); +it('gets null if property do not exist', function () { + expect(test()->wqdwqdqw)->toBe(null); +}); class User {