mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: pr and issue
This commit is contained in:
@ -119,7 +119,7 @@ describe('something 2', function () {
|
||||
|
||||
$this->count++;
|
||||
})->after(function () {
|
||||
expect($this->count)->toBe(4);
|
||||
expect($this->count)->toBe(6);
|
||||
|
||||
$this->count++;
|
||||
});
|
||||
|
||||
15
tests/Features/Issue.php
Normal file
15
tests/Features/Issue.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
beforeEach(function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->issue(1);
|
||||
|
||||
it('may be associated with an issue', function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->issue(2);
|
||||
|
||||
describe('nested', function () {
|
||||
it('may be associated with an issue', function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->issue('#3');
|
||||
})->issue(4)->note('an note between an the issue')->issue([5, 6]);
|
||||
15
tests/Features/Pr.php
Normal file
15
tests/Features/Pr.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
beforeEach(function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->pr(1);
|
||||
|
||||
it('may be associated with an pr', function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->pr(2);
|
||||
|
||||
describe('nested', function () {
|
||||
it('may be associated with an pr', function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->pr('#3');
|
||||
})->pr(4)->note('an note between an the pr')->pr(['#5', 6]);
|
||||
15
tests/Features/Ticket.php
Normal file
15
tests/Features/Ticket.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
beforeEach(function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->ticket(1);
|
||||
|
||||
it('may be associated with an ticket', function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->ticket(2);
|
||||
|
||||
describe('nested', function () {
|
||||
it('may be associated with an ticket', function () {
|
||||
expect(true)->toBeTrue();
|
||||
})->ticket(3);
|
||||
})->ticket(4)->note('an note between an the ticket')->ticket([5, 6]);
|
||||
Reference in New Issue
Block a user