Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[BUGFIX] DI fails with CompilerDefinition; solves #5738 #5739

Conversation

michaelschiller
Copy link
Contributor

No description provided.

@Ocramius
Copy link
Member

@michaelschiller missing tests

$definition->compile();
$this->assertTrue($definition->hasMethodParameters('ZendTest\Di\TestAsset\ConstructorInjection\B', '__construct'));
$this->assertTrue($definition->hasMethodParameters('ZendTest\Di\TestAsset\SetterInjection\B', 'setA'));
$this->assertTrue($definition->hasMethodParameters('ZendTest\Di\TestAsset\CompilerClasses\D', 'setB'));
Copy link
Member

Choose a reason for hiding this comment

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

Please add or change some assert for test false.

If possible one false when class does not exists and another one when method don't exists

@weierophinney weierophinney added this to the 2.2.6 milestone Mar 3, 2014
@weierophinney weierophinney self-assigned this Mar 3, 2014
weierophinney added a commit that referenced this pull request Mar 3, 2014
[BUGFIX] DI fails with CompilerDefinition; solves #5738
weierophinney added a commit that referenced this pull request Mar 3, 2014
- trailing whitespace
weierophinney added a commit that referenced this pull request Mar 3, 2014
weierophinney added a commit to zendframework/zend-di that referenced this pull request May 15, 2015
…ler/di_compilerdefinition_fix

[BUGFIX] DI fails with CompilerDefinition; solves zendframework/zendframework#5738
weierophinney added a commit to zendframework/zend-di that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-di that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-di that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants