chore: adjusts tests

This commit is contained in:
Nuno Maduro
2024-09-03 14:09:03 +01:00
parent 8920b850e1
commit e2d360b1b5
36 changed files with 187 additions and 84 deletions

View File

@ -353,7 +353,7 @@ final class TestCall
}
/**
* Sets the test as "todo".
* Marks the test as "todo".
*/
public function todo(// @phpstan-ignore-line
array|string|null $note = null,
@ -384,6 +384,34 @@ final class TestCall
return $this;
}
/**
* Sets the test as "work in progress".
*/
public function wip(// @phpstan-ignore-line
array|string|null $note = null,
array|string|null $assignee = null,
array|string|null $issue = null,
array|string|null $pr = null,
): self {
if ($issue !== null) {
$this->issue($issue);
}
if ($pr !== null) {
$this->pr($pr);
}
if ($assignee !== null) {
$this->assignee($assignee);
}
if ($note !== null) {
$this->note($note);
}
return $this;
}
/**
* Sets the test as "done".
*/

View File

@ -84,8 +84,7 @@ final class UsesCall
}
/**
* The directories or file where the
* class or traits should be used.
* The directories or file where the class or traits should be used.
*/
public function in(string ...$targets): self
{