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 Pest\Support\ExceptionTrace; it('ensures the given closures reports the correc..

Decoded Output download

<?php

use Pest\Support\ExceptionTrace;

it('ensures the given closures reports the correct class name', function () {
    $closure = function () {
        throw new Exception('Call to undefined method P\Tests\IntentionallyNotExisting::testBasic().');
    };

    ExceptionTrace::ensure($closure);
})->throws(
    Exception::class,
    'Call to undefined method Tests\IntentionallyNotExisting::testBasic().',
);

it('ensures the given closures reports the correct class name and suggests the [uses()] function', function () {
    $this->get();
})->throws(
    Error::class,
    'Call to undefined method Tests\Unit\Support\ExceptionTrace::get(). Did you forget to use the [uses()] function? Read more at: https://pestphp.com/docs/configuring-tests',
);
 ?>

Did this file decode correctly?

Original Code

<?php

use Pest\Support\ExceptionTrace;

it('ensures the given closures reports the correct class name', function () {
    $closure = function () {
        throw new Exception('Call to undefined method P\Tests\IntentionallyNotExisting::testBasic().');
    };

    ExceptionTrace::ensure($closure);
})->throws(
    Exception::class,
    'Call to undefined method Tests\IntentionallyNotExisting::testBasic().',
);

it('ensures the given closures reports the correct class name and suggests the [uses()] function', function () {
    $this->get();
})->throws(
    Error::class,
    'Call to undefined method Tests\Unit\Support\ExceptionTrace::get(). Did you forget to use the [uses()] function? Read more at: https://pestphp.com/docs/configuring-tests',
);

Function Calls

None

Variables

None

Stats

MD5 3a1c1e0ae68fc91348542edbe993788e
Eval Count 0
Decode Time 91 ms