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([])->toBeEmpty();
    expect(null)->toBeEmpty();
});

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

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

test('not failures', function () {
    expect([])->not->toBeEmpty();
    expect(null)->not->toBeEmpty();
})->throws(ExpectationFailedException::class);
 ?>

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect([])->toBeEmpty();
    expect(null)->toBeEmpty();
});

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

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

test('not failures', function () {
    expect([])->not->toBeEmpty();
    expect(null)->not->toBeEmpty();
})->throws(ExpectationFailedException::class);

Function Calls

None

Variables

None

Stats

MD5 bc99c96a5e3a1b957ff90b5702f0b375
Eval Count 0
Decode Time 77 ms