We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38db120 commit 9181e4fCopy full SHA for 9181e4f
src/MatchesSnapshots.php
@@ -19,7 +19,7 @@ public function assertMatchesSnapshot($actual, $type = 'var', $methodTrace = nul
19
return $this->markTestIncomplete("Snapshot created for {$snapshot->id()}");
20
}
21
22
- if (getenv('update_snapshots') == 1) {
+ if (in_array('--update', $_SERVER['argv'], true)) {
23
return $this->updateSnapshot($type, $snapshot, $actual);
24
25
0 commit comments