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(function () {
})->toBeCallable();
expect(null)->not->toBeCallable();
});
test('failures', function () {
$hello = 5;
expect($hello)->toBeCallable();
})->throws(ExpectationFailedException::class);
test('failures with custom message', function () {
$hello = 5;
expect($hello)->toBeCallable('oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('not failures', function () {
expect(function () {
return 42;
})->not->toBeCallable();
})->throws(ExpectationFailedException::class);
?>
Did this file decode correctly?
Original Code
<?php
use PHPUnit\Framework\ExpectationFailedException;
test('pass', function () {
expect(function () {
})->toBeCallable();
expect(null)->not->toBeCallable();
});
test('failures', function () {
$hello = 5;
expect($hello)->toBeCallable();
})->throws(ExpectationFailedException::class);
test('failures with custom message', function () {
$hello = 5;
expect($hello)->toBeCallable('oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('not failures', function () {
expect(function () {
return 42;
})->not->toBeCallable();
})->throws(ExpectationFailedException::class);
Function Calls
None |
Stats
MD5 | 535dbfa9cf996236f69aca6b74543a9e |
Eval Count | 0 |
Decode Time | 85 ms |