CHH / pipe

Put your assets into the pipe and smoke them.
MIT License
120 stars 9 forks source link

Ambiguity between directory paths and asset files #46

Open maetl opened 11 years ago

maetl commented 11 years ago

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