mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 01:37:21 +01:00
feat: note()
This commit is contained in:
@ -364,6 +364,20 @@ final class TestCall
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a note to the test.
|
||||
*
|
||||
* @param array<int, string>|string $note
|
||||
*/
|
||||
public function note(array|string $note): self
|
||||
{
|
||||
$notes = is_array($note) ? $note : [$note];
|
||||
|
||||
$this->testCaseMethod->notes = array_merge($this->testCaseMethod->notes, $notes);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the covered classes or methods.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user