/**
  * Test removing an array of fields from a tab in a set.
  */
 public function testRemoveMultipleFieldsFromTab()
 {
     $fields = new FieldList();
     $tab = new Tab('Root');
     $fields->push($tab);
     /* We add an array of fields, using addFieldsToTab() */
     $fields->addFieldsToTab('Root', array(new TextField('Name', 'Your name'), new EmailField('Email', 'Email address'), new NumericField('Number', 'Insert a number')));
     /* We have 3 fields inside the tab, which we just created */
     $this->assertEquals(3, $tab->Fields()->Count());
     /* We remove the 3 fields from the tab */
     $fields->removeFieldsFromTab('Root', array('Name', 'Email', 'Number'));
     /* We have no fields in the tab now */
     $this->assertEquals(0, $tab->Fields()->Count());
 }