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 Illuminate\Tests\Pagination; use Illuminate\Database\Eloquent\Collection..
Decoded Output download
<?php
namespace Illuminate\Tests\Pagination;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Pagination\AbstractCursorPaginator;
use Mockery as m;
use PHPUnit\Framework\TestCase;
class CursorPaginatorLoadMorphTest extends TestCase
{
public function testCollectionLoadMorphCanChainOnThePaginator()
{
$relations = [
'App\User' => 'photos',
'App\Company' => ['employees', 'calendars'],
];
$items = m::mock(Collection::class);
$items->shouldReceive('loadMorph')->once()->with('parentable', $relations);
$p = (new class extends AbstractCursorPaginator {})->setCollection($items);
$this->assertSame($p, $p->loadMorph('parentable', $relations));
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Tests\Pagination;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Pagination\AbstractCursorPaginator;
use Mockery as m;
use PHPUnit\Framework\TestCase;
class CursorPaginatorLoadMorphTest extends TestCase
{
public function testCollectionLoadMorphCanChainOnThePaginator()
{
$relations = [
'App\\User' => 'photos',
'App\\Company' => ['employees', 'calendars'],
];
$items = m::mock(Collection::class);
$items->shouldReceive('loadMorph')->once()->with('parentable', $relations);
$p = (new class extends AbstractCursorPaginator {})->setCollection($items);
$this->assertSame($p, $p->loadMorph('parentable', $relations));
}
}
Function Calls
None |
Stats
MD5 | 675fe7016ed04ff8275ec3ca28ce5680 |
Eval Count | 0 |
Decode Time | 124 ms |