mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
16 lines
274 B
PHP
16 lines
274 B
PHP
<?php
|
|
|
|
beforeEach(function () {
|
|
$this->bar = 2;
|
|
});
|
|
|
|
it('gets executed before each test', function () {
|
|
expect($this->bar)->toBe(2);
|
|
|
|
$this->bar = 'changed';
|
|
});
|
|
|
|
it('gets executed before each test once again', function () {
|
|
expect($this->bar)->toBe(2);
|
|
});
|