getGroups() public method

Gets groups.
public getGroups ( ) : string[]
return string[]
 public function testGroupsParameters()
 {
     $validData = array('a', 'b');
     $groups = new Groups(array('value' => $validData));
     $this->assertEquals($validData, $groups->getGroups());
 }
Beispiel #2
0
 public function testSingleGroup()
 {
     $groups = new Groups(array('value' => 'a'));
     $this->assertEquals(array('a'), $groups->getGroups());
 }