/**
  * @group ZF2-308
  */
 public function testStaticMethodsNotIncludedInDefinitions()
 {
     $definition = new RuntimeDefinition();
     $this->assertTrue($definition->hasMethod('ZendTest\\Di\\TestAsset\\SetterInjection\\StaticSetter', 'setFoo'));
     $this->assertFalse($definition->hasMethod('ZendTest\\Di\\TestAsset\\SetterInjection\\StaticSetter', 'setName'));
 }
Exemplo n.º 2
0
 /**
  * Test if methods from aware interfaces without params are excluded
  */
 public function testExcludeAwareMethodsWithoutParameters()
 {
     $definition = new RuntimeDefinition();
     $this->assertTrue($definition->hasMethod('ZendTest\\Di\\TestAsset\\AwareClasses\\B', 'setSomething'));
     $this->assertFalse($definition->hasMethod('ZendTest\\Di\\TestAsset\\AwareClasses\\B', 'getSomething'));
 }