@@ -70,46 +70,44 @@ public function assertMatchesFileHashSnapshot($filePath)
70
70
$ this ->assertMatchesSnapshot ($ actual );
71
71
}
72
72
73
- public function assertMatchesFileSnapshot ($ file )
73
+ public function assertMatchesFileSnapshot ($ file ): void
74
74
{
75
75
$ this ->doFileSnapshotAssertion ($ file );
76
76
}
77
77
78
- public function assertMatchesHtmlSnapshot ($ actual )
78
+ public function assertMatchesHtmlSnapshot ($ actual ): void
79
79
{
80
80
$ this ->assertMatchesSnapshot ($ actual , new HtmlDriver ());
81
81
}
82
82
83
- public function assertMatchesJsonSnapshot ($ actual )
83
+ public function assertMatchesJsonSnapshot ($ actual ): void
84
84
{
85
85
$ this ->assertMatchesSnapshot ($ actual , new JsonDriver ());
86
86
}
87
87
88
- public function assertMatchesObjectSnapshot ($ actual )
88
+ public function assertMatchesObjectSnapshot ($ actual ): void
89
89
{
90
90
$ this ->assertMatchesSnapshot ($ actual , new ObjectDriver ());
91
91
}
92
92
93
- public function assertMatchesTextSnapshot ($ actual )
93
+ public function assertMatchesTextSnapshot ($ actual ): void
94
94
{
95
95
$ this ->assertMatchesSnapshot ($ actual , new TextDriver ());
96
96
}
97
97
98
- public function assertMatchesXmlSnapshot ($ actual )
98
+ public function assertMatchesXmlSnapshot ($ actual ): void
99
99
{
100
100
$ this ->assertMatchesSnapshot ($ actual , new XmlDriver ());
101
101
}
102
102
103
- public function assertMatchesYamlSnapshot ($ actual )
103
+ public function assertMatchesYamlSnapshot ($ actual ): void
104
104
{
105
105
$ this ->assertMatchesSnapshot ($ actual , new YamlDriver ());
106
106
}
107
107
108
- /**
108
+ /*
109
109
* Determines the snapshot's id. By default, the test case's class and
110
110
* method names are used.
111
- *
112
- * @return string
113
111
*/
114
112
protected function getSnapshotId (): string
115
113
{
@@ -118,12 +116,10 @@ protected function getSnapshotId(): string
118
116
$ this ->snapshotIncrementor ;
119
117
}
120
118
121
- /**
119
+ /*
122
120
* Determines the directory where snapshots are stored. By default a
123
121
* `__snapshots__` directory is created at the same level as the test
124
122
* class.
125
- *
126
- * @return string
127
123
*/
128
124
protected function getSnapshotDirectory (): string
129
125
{
@@ -132,12 +128,10 @@ protected function getSnapshotDirectory(): string
132
128
'__snapshots__ ' ;
133
129
}
134
130
135
- /**
131
+ /*
136
132
* Determines the directory where file snapshots are stored. By default a
137
133
* `__snapshots__/files` directory is created at the same level as the
138
134
* test class.
139
- *
140
- * @return string
141
135
*/
142
136
protected function getFileSnapshotDirectory (): string
143
137
{
@@ -146,14 +140,12 @@ protected function getFileSnapshotDirectory(): string
146
140
'files ' ;
147
141
}
148
142
149
- /**
143
+ /*
150
144
* Determines whether or not the snapshot should be updated instead of
151
145
* matched.
152
146
*
153
147
* Override this method it you want to use a different flag or mechanism
154
148
* than `-d --update-snapshots`.
155
- *
156
- * @return bool
157
149
*/
158
150
protected function shouldUpdateSnapshots (): bool
159
151
{
0 commit comments