mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
tests: helpers fix
This commit is contained in:
@ -10,9 +10,9 @@ it('can set/get properties on $this', function () {
|
|||||||
expect($this->user)->toBe('nuno');
|
expect($this->user)->toBe('nuno');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('throws error if property do not exist', function () {
|
it('gets null if property do not exist', function () {
|
||||||
test()->user;
|
expect(test()->wqdwqdqw)->toBe(null);
|
||||||
})->throws(\Whoops\Exception\ErrorException::class, 'Undefined property PHPUnit\Framework\TestCase::$user');
|
});
|
||||||
|
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user