feat: pr and issue

This commit is contained in:
Nuno Maduro
2024-07-04 00:53:58 +01:00
parent 09ca7a1fd5
commit ee32f25485
26 changed files with 423 additions and 53 deletions

View File

@ -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
View 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
View 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
View 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]);