File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 6
6
class PdfFaker extends PdfWrapper
7
7
{
8
8
protected $ view ;
9
+ protected $ filename ;
9
10
10
11
/**
11
12
* Load a View and convert to HTML
@@ -154,6 +155,19 @@ public function assertDontSeeText($value)
154
155
155
156
return $ this ;
156
157
}
158
+
159
+ /**
160
+ * Assert that the given string is equal to the saved filename.
161
+ *
162
+ * @param string $value
163
+ * @return $this
164
+ */
165
+ public function assertFileNameIs ($ value )
166
+ {
167
+ PHPUnit::assertEquals ($ value , $ this ->filename );
168
+
169
+ return $ this ;
170
+ }
157
171
158
172
public function output ()
159
173
{
@@ -275,6 +289,7 @@ public function output()
275
289
*/
276
290
public function save ($ filename , $ overwrite = false )
277
291
{
292
+ $ this ->filename = $ filename ;
278
293
return $ this ;
279
294
}
280
295
}
You can’t perform that action at this time.
0 commit comments