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')->toBeStudlyCase();
    expect('AbcDef')->toBeStudlyCase();
    expect('abc-def')->not->toBeStudlyCase();
    expect('abc-def')->not->toBeStudlyCase();
    expect('abc')->not->toBeStudlyCase();
});

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

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

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

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect('Abc')->toBeStudlyCase();
    expect('AbcDef')->toBeStudlyCase();
    expect('abc-def')->not->toBeStudlyCase();
    expect('abc-def')->not->toBeStudlyCase();
    expect('abc')->not->toBeStudlyCase();
});

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

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

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

Function Calls

None

Variables

None

Stats

MD5 18fe738bc0ba5e126db79c7fb7f6d659
Eval Count 0
Decode Time 80 ms