chore: bumps expectation plugin

This commit is contained in:
Nuno Maduro
2021-06-10 18:40:38 +01:00
parent 17d407a26a
commit b682fe631d
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@
"nunomaduro/collision": "^5.0",
"pestphp/pest-plugin": "^1.0",
"pestphp/pest-plugin-coverage": "^1.0",
"pestphp/pest-plugin-expectations": "^1.3",
"pestphp/pest-plugin-expectations": "^1.6",
"pestphp/pest-plugin-init": "^1.1",
"phpunit/phpunit": ">= 9.3.7 <= 9.5.5"
},

View File

@ -8,11 +8,11 @@ beforeAll(function () use ($foo) {
});
it('gets executed before tests', function () use ($foo) {
expect($foo->bar)->toBe(1);
expect($foo)->bar->toBe(1);
$foo->bar = 'changed';
});
it('do not get executed before each test', function () use ($foo) {
expect($foo->bar)->toBe('changed');
expect($foo)->bar->toBe('changed');
});

View File

@ -1,7 +1,7 @@
<?php
it('is a test', function () {
$this->assertArrayHasKey('key', ['key' => 'foo']);
expect(['key' => 'foo'])->toHaveKey('key')->key->toBeString();
});
it('is a higher order message test')->expect(true)->toBeTrue();