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 R..

Decoded Output download

<?php

namespace Tests\Feature;

use App\Models\Interaction;
use App\Models\User;

class RecentlyPlayedSongTest extends TestCase
{
    public function testIndex(): void
    {
        /** @var User $user */
        $user = User::factory()->create();

        Interaction::factory(5)->for($user)->create();

        $this->getAs('api/songs/recently-played', $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 RecentlyPlayedSongTest extends TestCase
{
    public function testIndex(): void
    {
        /** @var User $user */
        $user = User::factory()->create();

        Interaction::factory(5)->for($user)->create();

        $this->getAs('api/songs/recently-played', $user)
            ->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 562ea22bd8470b9cf1225539da6965f0
Eval Count 0
Decode Time 109 ms