mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
chore: bumps expectation plugin
This commit is contained in:
@ -21,7 +21,7 @@
|
|||||||
"nunomaduro/collision": "^5.0",
|
"nunomaduro/collision": "^5.0",
|
||||||
"pestphp/pest-plugin": "^1.0",
|
"pestphp/pest-plugin": "^1.0",
|
||||||
"pestphp/pest-plugin-coverage": "^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",
|
"pestphp/pest-plugin-init": "^1.1",
|
||||||
"phpunit/phpunit": ">= 9.3.7 <= 9.5.5"
|
"phpunit/phpunit": ">= 9.3.7 <= 9.5.5"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -8,11 +8,11 @@ beforeAll(function () use ($foo) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('gets executed before tests', function () use ($foo) {
|
it('gets executed before tests', function () use ($foo) {
|
||||||
expect($foo->bar)->toBe(1);
|
expect($foo)->bar->toBe(1);
|
||||||
|
|
||||||
$foo->bar = 'changed';
|
$foo->bar = 'changed';
|
||||||
});
|
});
|
||||||
|
|
||||||
it('do not get executed before each test', function () use ($foo) {
|
it('do not get executed before each test', function () use ($foo) {
|
||||||
expect($foo->bar)->toBe('changed');
|
expect($foo)->bar->toBe('changed');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
it('is a test', function () {
|
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();
|
it('is a higher order message test')->expect(true)->toBeTrue();
|
||||||
|
|||||||
Reference in New Issue
Block a user