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\Artist; use App\Models\Song; class Artist..

Decoded Output download

<?php

namespace Tests\Feature;

use App\Models\Artist;
use App\Models\Song;

class ArtistSongTest extends TestCase
{
    public function testIndex(): void
    {
        /** @var Artist $artist */
        $artist = Artist::factory()->create();

        Song::factory(5)->for($artist)->create();

        $this->getAs('api/artists/' . $artist->id . '/songs')
            ->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Tests\Feature;

use App\Models\Artist;
use App\Models\Song;

class ArtistSongTest extends TestCase
{
    public function testIndex(): void
    {
        /** @var Artist $artist */
        $artist = Artist::factory()->create();

        Song::factory(5)->for($artist)->create();

        $this->getAs('api/artists/' . $artist->id . '/songs')
            ->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 e0447c4298b334a930167cd8c4f52bcb
Eval Count 0
Decode Time 121 ms