mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix: returns relative path from snapshot
This commit is contained in:
@ -49,7 +49,9 @@ final class SnapshotRepository
|
|||||||
throw ShouldNotHappen::fromMessage('Snapshot file could not be read.');
|
throw ShouldNotHappen::fromMessage('Snapshot file could not be read.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return [$snapshotFilename, $contents];
|
$snapshot = str_replace(dirname($this->testsPath).'/', '', $snapshotFilename);
|
||||||
|
|
||||||
|
return [$snapshot, $contents];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user