mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix types
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user