Skip to content

Ambiguity between directory paths and asset files #46

@maetl

Description

@maetl

The following test case results in an error (due to the ambiguity of the path reference?):

<?php

namespace Pipe\Test;

use Pipe\DirectiveProcessor,
    Pipe\Context,
    Pipe\Environment;

class RecursiveDirectiveProcessorTest extends \PHPUnit_Framework_TestCase
{
    var $env;

    function setUp()
    {
        $this->env = new Environment;
        $this->env->appendPath(__DIR__.'/fixtures/directive_processor');
    }

    function testRequireTreeIncludesNestedAssets()
    {
        $asset = $this->env->find('tree.js');
    }
}

Log:

There was 1 error:

1) Pipe\Test\RecursiveDirectiveProcessorTest::testRequireTreeIncludesNestedAssets
UnexpectedValueException: 
Asset /pipe/tests/Pipe/Test/fixtures/directive_processor/module/ui not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions