/** * @param MethodDeprecation $methodDeprecation */ public function addMethodDeprecation(MethodDeprecation $methodDeprecation) { if (!isset($this->methodDeprecations[$methodDeprecation->parentName()])) { $this->methodDeprecations[$methodDeprecation->parentName()] = array(); } $this->methodDeprecations[$methodDeprecation->parentName()][$methodDeprecation->name()] = $methodDeprecation; }
public function testGetMethodName() { $methodDeprecation = new MethodDeprecation('className', 'methodName', 'comment'); $this->assertSame('methodName', $methodDeprecation->name()); }