mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 14:37:29 +02:00
feat(describe): snapshots
This commit is contained in:
@ -345,9 +345,9 @@ final class TestCall
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
if ($this->describing) {
|
||||
$this->testCaseMethod->description = '`'.$this->describing.'` '.$this->testCaseMethod->description;
|
||||
if (! is_null($this->describing)) {
|
||||
$this->testCaseMethod->describing = $this->describing;
|
||||
$this->testCaseMethod->description = sprintf('`%s` > %s', $this->describing, $this->testCaseMethod->description);
|
||||
}
|
||||
|
||||
$this->testSuite->tests->set($this->testCaseMethod);
|
||||
|
||||
Reference in New Issue
Block a user