fix types

This commit is contained in:
Fabio Ivona
2022-08-29 14:04:47 +02:00
parent 42ceddf374
commit 38a82cd142
2 changed files with 14 additions and 4 deletions

View File

@ -17,6 +17,16 @@ test('pass', function () {
]);
});
test('pass with class', function () {
expect(new class() {
public $name = 'Nuno';
public $email = 'enunomaduro@gmail.com';
})->toMatchObject([
'name' => 'Nuno',
'email' => 'enunomaduro@gmail.com',
]);
});
test('failures', function () {
expect($this->user)->toMatchObject([
'name' => 'Not the same name',