Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguity between directory paths and asset files #46

Open
maetl opened this issue Sep 20, 2013 · 0 comments
Open

Ambiguity between directory paths and asset files #46

maetl opened this issue Sep 20, 2013 · 0 comments

Comments

@maetl
Copy link

maetl commented Sep 20, 2013

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant