@@ -24,11 +24,17 @@ |
||
24 | 24 | $this->doSnapshotAssertion($actual, new VarDriver()); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $actual |
|
29 | + */ |
|
27 | 30 | public function assertMatchesXmlSnapshot($actual) |
28 | 31 | { |
29 | 32 | $this->doSnapshotAssertion($actual, new XmlDriver()); |
30 | 33 | } |
31 | 34 | |
35 | + /** |
|
36 | + * @param string $actual |
|
37 | + */ |
|
32 | 38 | public function assertMatchesJsonSnapshot($actual) |
33 | 39 | { |
34 | 40 | $this->doSnapshotAssertion($actual, new JsonDriver()); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Snapshots; |
4 | 4 | |
5 | -use PHPUnit_Framework_ExpectationFailedException; |
|
6 | 5 | use PHPUnit\Framework\ExpectationFailedException; |
6 | +use PHPUnit_Framework_ExpectationFailedException; |
|
7 | 7 | use ReflectionClass; |
8 | 8 | use Spatie\Snapshots\Drivers\JsonDriver; |
9 | 9 | use Spatie\Snapshots\Drivers\VarDriver; |