/** * @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')); }
/** * 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')); }