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 use PHPUnit\Framework\ExpectationFailedException; test('pass', function () { e..

Decoded Output download

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect([1, 2, 3])->toEqualCanonicalizing([3, 1, 2]);
    expect(['g', 'a', 'z'])->not->toEqualCanonicalizing(['a', 'z']);
});

test('failures', function () {
    expect([3, 2, 1])->toEqualCanonicalizing([1, 2]);
})->throws(ExpectationFailedException::class);

test('failures with custom message', function () {
    expect([3, 2, 1])->toEqualCanonicalizing([1, 2], 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');

test('not failures', function () {
    expect(['a', 'b', 'c'])->not->toEqualCanonicalizing(['b', 'a', 'c']);
})->throws(ExpectationFailedException::class);
 ?>

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect([1, 2, 3])->toEqualCanonicalizing([3, 1, 2]);
    expect(['g', 'a', 'z'])->not->toEqualCanonicalizing(['a', 'z']);
});

test('failures', function () {
    expect([3, 2, 1])->toEqualCanonicalizing([1, 2]);
})->throws(ExpectationFailedException::class);

test('failures with custom message', function () {
    expect([3, 2, 1])->toEqualCanonicalizing([1, 2], 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');

test('not failures', function () {
    expect(['a', 'b', 'c'])->not->toEqualCanonicalizing(['b', 'a', 'c']);
})->throws(ExpectationFailedException::class);

Function Calls

None

Variables

None

Stats

MD5 dd135c85c465e9c3d70b8505a43253a4
Eval Count 0
Decode Time 82 ms