feat: note()

This commit is contained in:
Nuno Maduro
2024-06-27 01:26:54 +01:00
parent d9252e85d6
commit 5c3bf469d5
10 changed files with 118 additions and 3 deletions

36
tests/Features/Note.php Normal file
View File

@ -0,0 +1,36 @@
<?php
beforeEach(function () {
$this->note('This is before each runtime note');
})->note('This is before each static note');
it('may have a static note', function () {
expect(true)->toBeTrue();
})->note('This is a note');
it('may have a runtime note', function () {
expect(true)->toBeTrue(true);
$this->note('This is a runtime note');
});
it('may have static note and runtime note', function () {
expect(true)->toBeTrue(true);
$this->note('This is a runtime note');
})->note('This is a static note');
describe('nested', function () {
it('may have static note and runtime note', function () {
expect(true)->toBeTrue(true);
$this->note('This is a runtime note within describe');
})->note('This is a static note within describe');
})->note('This is describe static note');
test('multiple notes', function () {
$this->note([
'This is a runtime note',
'This is another runtime note',
]);
});