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

Proper ordering of dependecies #15

Merged
merged 1 commit into from May 4, 2017
Merged

Proper ordering of dependecies #15

merged 1 commit into from May 4, 2017

Conversation

davidlgj
Copy link
Contributor

@davidlgj davidlgj commented May 3, 2017

...so script and style tags render in proper order.

This is done by traversing the dependencies bottom first and then remove the duplicates.

...so script and style tags render in proper order.
@coveralls
Copy link

coveralls commented May 3, 2017

Coverage Status

Coverage increased (+0.2%) to 94.954% when pulling df0d65b on proper-order into 5e7c825 on master.

@@ -19,7 +19,7 @@ public function testDependencies() {
$component = self::$factory->get('test_3');
$dependencies = $component->getDependencies();

$this->assertEquals('test_1', $dependencies['test_1']->name);
$this->assertEquals('test_1', $dependencies[0]->name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't really test neither the ordering or the uniqueness of the list ;) ...but I shouldn't really care :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just fixed the current test 😄

@davidlgj davidlgj merged commit d830971 into master May 4, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants