/** * @param FunctionDeprecation $deprecation */ public function addFunctionDeprecation(FunctionDeprecation $deprecation) { $this->functionDeprecations[$deprecation->name()] = $deprecation; }
public function testGetInterfaceName() { $functionDeprecation = new FunctionDeprecation('functionName', 'comment'); $this->assertSame('functionName', $functionDeprecation->name()); }