1<?php
2
3/**
4 * Container for all possible variation test cases
5 */
6abstract class gtVariationContainer {
7
8  protected $variationTests;
9
10  protected $dataTypes = array (
11                         'array',
12                         'boolean',
13                         'emptyUnsetUndefNull',
14                         'float',
15                         'int',
16                         'object',
17                         'string',
18                         );
19
20
21
22  /**
23   * Return an instance of a containers for either function or method tests
24   *
25   * @param string $type
26   * @return variation test container
27   */
28   public static function getInstance ($optionalSections, $type = 'function') {
29
30    if($type == 'function') {
31      return new gtVariationContainerFunction($optionalSections);
32    }
33    if($type =='method') {
34      return new gtVariationContainerMethod($optionalSections);
35    }
36
37  }
38
39
40  public function constructAll() {
41  }
42
43
44  /**
45   * Returns all varaition tests as an array of arrays
46   *
47   * @return string
48   */
49  public function getVariationTests() {
50    return $this->variationTests;
51  }
52
53}
54?>