tests: helpers fix

This commit is contained in:
Nuno Maduro
2023-03-02 17:51:34 +00:00
parent 3df68b288a
commit 3f6b2e856e

View File

@ -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
{