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\Integration\Repositories; use App\Models\Song; use App\Repositorie..
Decoded Output download
<?php
namespace Tests\Integration\Repositories;
use App\Models\Song;
use App\Repositories\SongRepository;
use Tests\TestCase;
class SongRepositoryTest extends TestCase
{
private SongRepository $songRepository;
public function setUp(): void
{
parent::setUp();
$this->songRepository = app(SongRepository::class);
}
public function testGetOneByPath(): void
{
/** @var Song $song */
$song = Song::factory()->create(['path' => 'foo']);
self::assertSame($song->id, $this->songRepository->getOneByPath('foo')->id);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Tests\Integration\Repositories;
use App\Models\Song;
use App\Repositories\SongRepository;
use Tests\TestCase;
class SongRepositoryTest extends TestCase
{
private SongRepository $songRepository;
public function setUp(): void
{
parent::setUp();
$this->songRepository = app(SongRepository::class);
}
public function testGetOneByPath(): void
{
/** @var Song $song */
$song = Song::factory()->create(['path' => 'foo']);
self::assertSame($song->id, $this->songRepository->getOneByPath('foo')->id);
}
}
Function Calls
| None |
Stats
| MD5 | dccd3c00a4520eaae4e4acedc9fcf0b7 |
| Eval Count | 0 |
| Decode Time | 120 ms |