/** * Collects all directly defined methods or method aliases for the given * {@link PHP_Depend_Code_ASTTraitReference} * * @param PHP_Depend_Code_ASTTraitReference $reference Context trait reference. * * @return void */ private function collectMethods(PHP_Depend_Code_ASTTraitReference $reference) { foreach ($reference->getType()->getAllMethods() as $method) { foreach ($this->getAliasesFor($method) as $alias) { $this->allMethods[] = $alias; } } }
/** * testTraitReferenceHasExpectedEndColumn * * @param PHP_Depend_Code_ASTTraitReference $reference * * @return void * @depends testTraitReference */ public function testTraitReferenceHasExpectedEndColumn($reference) { $this->assertEquals(36, $reference->getEndColumn()); }