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('abc')->toBeAlpha();
    expect('123')->not->toBeAlpha();
});

test('failures', function () {
    expect('123')->toBeAlpha();
})->throws(ExpectationFailedException::class);

test('failures with custom message', function () {
    expect('123')->toBeAlpha('oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');

test('not failures', function () {
    expect('abc')->not->toBeAlpha();
})->throws(ExpectationFailedException::class);
 ?>

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect('abc')->toBeAlpha();
    expect('123')->not->toBeAlpha();
});

test('failures', function () {
    expect('123')->toBeAlpha();
})->throws(ExpectationFailedException::class);

test('failures with custom message', function () {
    expect('123')->toBeAlpha('oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');

test('not failures', function () {
    expect('abc')->not->toBeAlpha();
})->throws(ExpectationFailedException::class);

Function Calls

None

Variables

None

Stats

MD5 d3f09330a25ac3e122b0cb04fa4cb570
Eval Count 0
Decode Time 75 ms