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

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

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

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

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect('abc')->toBeKebabCase();
    expect('abc-def')->toBeKebabCase();
    expect('abc_def')->not->toBeKebabCase();
    expect('abcDef')->not->toBeKebabCase();
    expect('AbcDef')->not->toBeKebabCase();
});

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

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

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

Function Calls

None

Variables

None

Stats

MD5 848495d3d102184b41c88cff7886a32d
Eval Count 0
Decode Time 78 ms