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\Interaction; use App\Models\User; class F..
Decoded Output download
<?php
namespace Tests\Feature;
use App\Models\Interaction;
use App\Models\User;
class FavoriteSongTest extends TestCase
{
public function testIndex(): void
{
/** @var User $user */
$user = User::factory()->create();
Interaction::factory(5)->for($user)->create(['liked' => true]);
$this->getAs('api/songs/favorite', $user)
->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Tests\Feature;
use App\Models\Interaction;
use App\Models\User;
class FavoriteSongTest extends TestCase
{
public function testIndex(): void
{
/** @var User $user */
$user = User::factory()->create();
Interaction::factory(5)->for($user)->create(['liked' => true]);
$this->getAs('api/songs/favorite', $user)
->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
}
}
Function Calls
None |
Stats
MD5 | 31f0f2e50936bf16f9e3e52545a432fb |
Eval Count | 0 |
Decode Time | 90 ms |