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