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(new Exception())->toBeInstanceOf(Exception::class);
    expect(new Exception())->not->toBeInstanceOf(RuntimeException::class);
});

test('failures', function () {
    expect(new Exception())->toBeInstanceOf(RuntimeException::class);
})->throws(ExpectationFailedException::class);

test('failures with custom message', function () {
    expect(new Exception())->toBeInstanceOf(RuntimeException::class, 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');

test('not failures', function () {
    expect(new Exception())->not->toBeInstanceOf(Exception::class);
})->throws(ExpectationFailedException::class);
 ?>

Did this file decode correctly?

Original Code

<?php

use PHPUnit\Framework\ExpectationFailedException;

test('pass', function () {
    expect(new Exception())->toBeInstanceOf(Exception::class);
    expect(new Exception())->not->toBeInstanceOf(RuntimeException::class);
});

test('failures', function () {
    expect(new Exception())->toBeInstanceOf(RuntimeException::class);
})->throws(ExpectationFailedException::class);

test('failures with custom message', function () {
    expect(new Exception())->toBeInstanceOf(RuntimeException::class, 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');

test('not failures', function () {
    expect(new Exception())->not->toBeInstanceOf(Exception::class);
})->throws(ExpectationFailedException::class);

Function Calls

None

Variables

None

Stats

MD5 8b698ed1a8cb3e6c6ee182530b4e5ae5
Eval Count 0
Decode Time 81 ms