mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
* Test dynamic * Try/catch relationships * Update snapshot * Test output
25 lines
445 B
PHP
25 lines
445 B
PHP
<?php
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests;
|
|
|
|
use PHPUnit\Framework\Assert;
|
|
use Spatie\Snapshots\Driver;
|
|
|
|
class SnapshotTxtDriver implements Driver
|
|
{
|
|
public function serialize($data): string
|
|
{
|
|
return (string) $data;
|
|
}
|
|
|
|
public function extension(): string
|
|
{
|
|
return 'txt';
|
|
}
|
|
|
|
public function match($expected, $actual)
|
|
{
|
|
Assert::assertSame($expected, $this->serialize($actual));
|
|
}
|
|
}
|