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.1')->toBeString();
    expect(1.1)->not->toBeString();
});

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

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

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

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect('1.1')->toBeString();
    expect(1.1)->not->toBeString();
});

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

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

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

Function Calls

None

Variables

None

Stats

MD5 317fef5810aed98976b4d1340cda33b5
Eval Count 0
Decode Time 88 ms