@@ -36,10 +36,10 @@ |
||
36 | 36 | * `ExpectationFailedException` if it doesn't match. This happens by |
37 | 37 | * default if you're using PHPUnit's `Assert` class for the match. |
38 | 38 | * |
39 | - * @param \Spatie\Snapshots\Snapshot $snapshot |
|
40 | 39 | * @param mixed $actual |
41 | 40 | * |
42 | 41 | * @throws \PHPUnit\Framework\ExpectationFailedException |
42 | + * @return void |
|
43 | 43 | */ |
44 | 44 | public function match($expected, $actual); |
45 | 45 | } |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Snapshots; |
4 | 4 | |
5 | +use PHPUnit\Framework\ExpectationFailedException; |
|
5 | 6 | use ReflectionClass; |
7 | +use Spatie\Snapshots\Drivers\JsonDriver; |
|
6 | 8 | use Spatie\Snapshots\Drivers\VarDriver; |
7 | 9 | use Spatie\Snapshots\Drivers\XmlDriver; |
8 | -use Spatie\Snapshots\Drivers\JsonDriver; |
|
9 | -use PHPUnit\Framework\ExpectationFailedException; |
|
10 | 10 | |
11 | 11 | trait MatchesSnapshots |
12 | 12 | { |