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 namespace Illuminate\Tests\Queue; use Illuminate\Bus\Queueable; use Illuminate\Con..
Decoded Output download
<?php
namespace Illuminate\Tests\Queue;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Queue;
use Orchestra\Testbench\TestCase;
class QueueDelayTest extends TestCase
{
public function test_queue_delay()
{
Queue::fake();
$job = new TestJob;
dispatch($job);
$this->assertEquals(60, $job->delay);
}
public function test_queue_without_delay()
{
Queue::fake();
$job = new TestJob;
dispatch($job->withoutDelay());
$this->assertEquals(0, $job->delay);
}
}
class TestJob implements ShouldQueue
{
use Queueable;
public function __construct()
{
$this->delay(60);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Tests\Queue;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Queue;
use Orchestra\Testbench\TestCase;
class QueueDelayTest extends TestCase
{
public function test_queue_delay()
{
Queue::fake();
$job = new TestJob;
dispatch($job);
$this->assertEquals(60, $job->delay);
}
public function test_queue_without_delay()
{
Queue::fake();
$job = new TestJob;
dispatch($job->withoutDelay());
$this->assertEquals(0, $job->delay);
}
}
class TestJob implements ShouldQueue
{
use Queueable;
public function __construct()
{
$this->delay(60);
}
}
Function Calls
| None |
Stats
| MD5 | 72b3310f1328cb13645b1acc191bed18 |
| Eval Count | 0 |
| Decode Time | 75 ms |