This commit is contained in:
Nuno Maduro
2020-05-11 18:38:30 +02:00
commit de2929077b
112 changed files with 6211 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
$foo = new \stdClass();
$foo->bar = 0;
beforeAll(function () use ($foo) {
$foo->bar++;
});
it('gets executed before tests', function () use ($foo) {
assertEquals($foo->bar, 1);
$foo->bar = 'changed';
});
it('do not get executed before each test', function () use ($foo) {
assertEquals($foo->bar, 'changed');
});