mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
feat(expect): updates test suite to use expectation api
This commit is contained in:
@ -11,10 +11,10 @@ afterEach(function () use ($state) {
|
||||
});
|
||||
|
||||
it('does not get executed before the test', function () {
|
||||
assertFalse(property_exists($this->state, 'bar'));
|
||||
expect(property_exists($this->state, 'bar'))->toBeFalse();
|
||||
});
|
||||
|
||||
it('gets executed after the test', function () {
|
||||
assertTrue(property_exists($this->state, 'bar'));
|
||||
assertEquals(2, $this->state->bar);
|
||||
expect(property_exists($this->state, 'bar'))->toBeTrue();
|
||||
expect($this->state->bar)->toBe(2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user