/**
  * Tests that the {@link \PDepend\Source\AST\ASTClass::addMethod()}
  * method adds a method to the internal list and sets the context class as
  * parent.
  *
  * @return void
  */
 public function testAddMethodStoresNewlyAddedMethodInCollection()
 {
     $class = new ASTClass(__CLASS__);
     $class->setCache(new MemoryCacheDriver());
     $class->addMethod(new ASTMethod(__FUNCTION__));
     $this->assertEquals(1, $class->getMethods()->count());
 }