From 0bf347196859ce718e2cbcdc47c86bc583dbb111 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 13 May 2020 22:55:38 +0200 Subject: [PATCH] tests: fixes failing test --- tests/Features/Helpers.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Features/Helpers.php b/tests/Features/Helpers.php index b32c8ab6..24377e00 100644 --- a/tests/Features/Helpers.php +++ b/tests/Features/Helpers.php @@ -1,18 +1,18 @@ user = 'nuno'; } it('can set/get properties on $this', function () { - addName(); - assertEquals('nuno', $this->name); + addUser(); + assertEquals('nuno', $this->user); }); it('throws error if property do not exist', function () { test()->user; -})->throws(\Whoops\Exception\ErrorException::class, 'Undefined property PHPUnit\Framework\TestCase::$name'); +})->throws(\Whoops\Exception\ErrorException::class, 'Undefined property PHPUnit\Framework\TestCase::$user'); class User {