<?php use Lightscale\LaralightAssets\JsonManifestParser; describe('JsonManifestParser', function() { it('instantiates', function() { new JsonManifestParser; })->throwsNoExceptions(); it('parses json', function() { $data = '{"main.js": "main.testing.js"}'; $parser = new JsonManifestParser; $result = $parser->parse($data); expect($result)->toMatchArray(['main.js' => 'main.testing.js']); }); });