File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` phpunit-snapshot-assertions ` will be documented in this file
4
4
5
- ## 0.4.0 - 2017-03-27
5
+ ## 0.4.1 - 2017-03-27
6
6
7
7
- Initial release
Original file line number Diff line number Diff line change @@ -20,19 +20,19 @@ public function setUpSnapshotIncrementor()
20
20
$ this ->snapshotIncrementor = 0 ;
21
21
}
22
22
23
- public function assertMatchesSnapshot ($ actual )
23
+ public function assertMatchesSnapshot ($ actual, Driver $ driver = null )
24
24
{
25
- $ this ->doSnapshotAssertion ($ actual , new VarDriver ());
25
+ $ this ->doSnapshotAssertion ($ actual , $ driver ?? new VarDriver ());
26
26
}
27
27
28
28
public function assertMatchesXmlSnapshot ($ actual )
29
29
{
30
- $ this ->doSnapshotAssertion ($ actual , new XmlDriver ());
30
+ $ this ->assertMatchesSnapshot ($ actual , new XmlDriver ());
31
31
}
32
32
33
33
public function assertMatchesJsonSnapshot ($ actual )
34
34
{
35
- $ this ->doSnapshotAssertion ($ actual , new JsonDriver ());
35
+ $ this ->assertMatchesSnapshot ($ actual , new JsonDriver ());
36
36
}
37
37
38
38
/**
You can’t perform that action at this time.
0 commit comments