feat(expect): updates test suite to use expectation api

This commit is contained in:
Nuno Maduro
2020-07-14 23:15:14 +02:00
parent e03d015120
commit 832882160f
37 changed files with 151 additions and 257 deletions

View File

@ -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);
});