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(null)->toBeNull();
    expect('')->not->toBeNull();
});

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

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

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

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect(null)->toBeNull();
    expect('')->not->toBeNull();
});

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

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

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

Function Calls

None

Variables

None

Stats

MD5 37670fc8dadb7df113c68530fc82c5ce
Eval Count 0
Decode Time 87 ms