mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
39 lines
1003 B
PHP
39 lines
1003 B
PHP
<?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 () {
|
|
expect(true)->toBeTrue(true);
|
|
|
|
$this->note([
|
|
'This is a runtime note',
|
|
'This is another runtime note',
|
|
]);
|
|
});
|