HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/l/e/s/lesanew/anestetues2/vendor/roots/acorn/tests/Assets/ManifestTest.php
<?php

use Roots\Acorn\Assets\Contracts\Asset as AssetContract;
use Roots\Acorn\Assets\Contracts\Bundle as BundleContract;
use Roots\Acorn\Assets\Manifest;
use Roots\Acorn\Tests\Test\TestCase;

uses(TestCase::class);

it('can get an asset', function () {
    $manifest = new Manifest(
        $this->fixture('bud_single_runtime'),
        'https://k.jo',
        json_decode(file_get_contents($this->fixture('bud_single_runtime/public/manifest.json')), JSON_OBJECT_AS_ARRAY)
    );

    expect($manifest->asset('app.js'))->toBeInstanceOf(AssetContract::class);
});

it('can get a bundle', function () {
    $manifest = new Manifest(
        $this->fixture('bud_single_runtime'),
        'https://k.jo',
        [],
        json_decode(file_get_contents($this->fixture('bud_single_runtime/public/entrypoints.json')), JSON_OBJECT_AS_ARRAY)
    );

    expect($manifest->bundle('app'))->toBeInstanceOf(BundleContract::class);
});