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\Integration\Routing; use Illuminate\Contracts\Support\R..
Decoded Output download
<?php
namespace Illuminate\Tests\Integration\Routing;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Support\Facades\Route;
use Orchestra\Testbench\TestCase;
class ResponsableTest extends TestCase
{
public function testResponsableObjectsAreRendered()
{
Route::get('/responsable', function () {
return new TestResponsableResponse;
});
$response = $this->get('/responsable');
$this->assertEquals(201, $response->status());
$this->assertSame('Taylor', $response->headers->get('X-Test-Header'));
$this->assertSame('hello world', $response->getContent());
}
}
class TestResponsableResponse implements Responsable
{
public function toResponse($request)
{
return response('hello world', 201, ['X-Test-Header' => 'Taylor']);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Tests\Integration\Routing;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Support\Facades\Route;
use Orchestra\Testbench\TestCase;
class ResponsableTest extends TestCase
{
public function testResponsableObjectsAreRendered()
{
Route::get('/responsable', function () {
return new TestResponsableResponse;
});
$response = $this->get('/responsable');
$this->assertEquals(201, $response->status());
$this->assertSame('Taylor', $response->headers->get('X-Test-Header'));
$this->assertSame('hello world', $response->getContent());
}
}
class TestResponsableResponse implements Responsable
{
public function toResponse($request)
{
return response('hello world', 201, ['X-Test-Header' => 'Taylor']);
}
}
Function Calls
None |
Stats
MD5 | 4900b944947c020ac6d500da288455bb |
Eval Count | 0 |
Decode Time | 110 ms |