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 $state = new stdClass(); beforeEach(function () use ($state) { $this->state = ..
Decoded Output download
<?php
$state = new stdClass();
beforeEach(function () use ($state) {
$this->state = $state;
});
afterEach(function () {
$this->state->bar = 1;
});
afterEach(function () {
unset($this->state->bar);
});
it('does not get executed before the test', function () {
expect($this->state)->not->toHaveProperty('bar');
});
it('gets executed after the test', function () {
expect($this->state)->toHaveProperty('bar');
expect($this->state->bar)->toBe(2);
});
afterEach(function () {
$this->state->bar = 2;
});
?>
Did this file decode correctly?
Original Code
<?php
$state = new stdClass();
beforeEach(function () use ($state) {
$this->state = $state;
});
afterEach(function () {
$this->state->bar = 1;
});
afterEach(function () {
unset($this->state->bar);
});
it('does not get executed before the test', function () {
expect($this->state)->not->toHaveProperty('bar');
});
it('gets executed after the test', function () {
expect($this->state)->toHaveProperty('bar');
expect($this->state->bar)->toBe(2);
});
afterEach(function () {
$this->state->bar = 2;
});
Function Calls
None |
Stats
MD5 | b22d2c8530175900cb1739b73c24d45b |
Eval Count | 0 |
Decode Time | 97 ms |