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 Tests\Feature; use App\Models\Album; use App\Models\Song; class AlbumSo..
Decoded Output download
<?php
namespace Tests\Feature;
use App\Models\Album;
use App\Models\Song;
class AlbumSongTest extends TestCase
{
public function testIndex(): void
{
/** @var Album $album */
$album = Album::factory()->create();
Song::factory(5)->for($album)->create();
$this->getAs('api/albums/' . $album->id . '/songs')
->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Tests\Feature;
use App\Models\Album;
use App\Models\Song;
class AlbumSongTest extends TestCase
{
public function testIndex(): void
{
/** @var Album $album */
$album = Album::factory()->create();
Song::factory(5)->for($album)->create();
$this->getAs('api/albums/' . $album->id . '/songs')
->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
}
}
Function Calls
None |
Stats
MD5 | e9a252f3917886240a8e3db70c88788b |
Eval Count | 0 |
Decode Time | 141 ms |