mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: adjusts tests
This commit is contained in:
@ -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".
|
||||
*/
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user