![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/spatie/phpunit-snapshot-assertions/src/ |
<?php namespace Spatie\Snapshots; interface Driver { /** * Serialize a snapshot's data to a string that can be written to a * generated snapshot file. * * @param mixed $data * * @return string */ public function serialize($data): string; /** * The extension that should be used to save the snapshot file, without * a leading dot. * * @return string */ public function extension(): string; /** * Match an expectation with a snapshot's actual contents. Should throw an * `ExpectationFailedException` if it doesn't match. This happens by * default if you're using PHPUnit's `Assert` class for the match. * * @param mixed $expected * @param mixed $actual * * @throws \PHPUnit\Framework\ExpectationFailedException */ public function match($expected, $actual); }