@@ -59,26 +59,6 @@ public function assertMatchesSnapshot($actual, Driver $driver = null)
5959 $ this ->doSnapshotAssertion ($ actual , new ObjectDriver ());
6060 }
6161
62- public function assertMatchesHtmlSnapshot ($ actual )
63- {
64- $ this ->assertMatchesSnapshot ($ actual , new HtmlDriver ());
65- }
66-
67- public function assertMatchesXmlSnapshot ($ actual )
68- {
69- $ this ->assertMatchesSnapshot ($ actual , new XmlDriver ());
70- }
71-
72- public function assertMatchesJsonSnapshot ($ actual )
73- {
74- $ this ->assertMatchesSnapshot ($ actual , new JsonDriver ());
75- }
76-
77- public function assertMatchesYamlSnapshot ($ actual )
78- {
79- $ this ->assertMatchesSnapshot ($ actual , new YamlDriver ());
80- }
81-
8262 public function assertMatchesFileHashSnapshot ($ filePath )
8363 {
8464 if (! file_exists ($ filePath )) {
@@ -95,6 +75,16 @@ public function assertMatchesFileSnapshot($file)
9575 $ this ->doFileSnapshotAssertion ($ file );
9676 }
9777
78+ public function assertMatchesHtmlSnapshot ($ actual )
79+ {
80+ $ this ->assertMatchesSnapshot ($ actual , new HtmlDriver ());
81+ }
82+
83+ public function assertMatchesJsonSnapshot ($ actual )
84+ {
85+ $ this ->assertMatchesSnapshot ($ actual , new JsonDriver ());
86+ }
87+
9888 public function assertMatchesObjectSnapshot ($ actual )
9989 {
10090 $ this ->assertMatchesSnapshot ($ actual , new ObjectDriver ());
@@ -105,6 +95,16 @@ public function assertMatchesTextSnapshot($actual)
10595 $ this ->assertMatchesSnapshot ($ actual , new TextDriver ());
10696 }
10797
98+ public function assertMatchesXmlSnapshot ($ actual )
99+ {
100+ $ this ->assertMatchesSnapshot ($ actual , new XmlDriver ());
101+ }
102+
103+ public function assertMatchesYamlSnapshot ($ actual )
104+ {
105+ $ this ->assertMatchesSnapshot ($ actual , new YamlDriver ());
106+ }
107+
108108 /**
109109 * Determines the snapshot's id. By default, the test case's class and
110110 * method names are used.
0 commit comments