Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests; use PHPUnit\F..

Decoded Output download

<?php

declare(strict_types=1);

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));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

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));
    }
}

Function Calls

None

Variables

None

Stats

MD5 9cc646b2862b698d7e5a74ae35d1c9c6
Eval Count 0
Decode Time 85 ms