mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 01:37:21 +01:00
feat(expect): updates test suite to use expectation api
This commit is contained in:
@ -5,11 +5,11 @@ beforeEach(function () {
|
||||
});
|
||||
|
||||
it('gets executed before each test', function () {
|
||||
assertEquals($this->bar, 2);
|
||||
expect($this->bar)->toBe(2);
|
||||
|
||||
$this->bar = 'changed';
|
||||
});
|
||||
|
||||
it('gets executed before each test once again', function () {
|
||||
assertEquals($this->bar, 2);
|
||||
expect($this->bar)->toBe(2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user