diff options
| author | Zoe Slattery <zoe@php.net> | 2009-05-07 09:21:43 +0000 |
|---|---|---|
| committer | Zoe Slattery <zoe@php.net> | 2009-05-07 09:21:43 +0000 |
| commit | cba448a9d358451338d57c5e45f7c7e06f3143d2 (patch) | |
| tree | df77a5d196aca30ffeb295d7dd5e79dc2429422a /scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php | |
| parent | 903f306a60fddda0c7faf824d9252b08add34456 (diff) | |
| download | php-git-cba448a9d358451338d57c5e45f7c7e06f3143d2.tar.gz | |
Replacing generate script with a new version
Diffstat (limited to 'scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php')
| -rw-r--r-- | scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php b/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php new file mode 100644 index 0000000000..59951707ce --- /dev/null +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php @@ -0,0 +1,54 @@ +<?php + +/** + * Container for all possible variation test cases + */ +abstract class gtVariationContainer { + + protected $variationTests; + + protected $dataTypes = array ( + 'array', + 'boolean', + 'emptyUnsetUndefNull', + 'float', + 'int', + 'object', + 'string', + ); + + + + /** + * Return an instance of a containers for either function or method tests + * + * @param string $type + * @return variation test container + */ + public static function getInstance ($optionalSections, $type = 'function') { + + if($type == 'function') { + return new gtVariationContainerFunction($optionalSections); + } + if($type =='method') { + return new gtVariationContainerMethod($optionalSections); + } + + } + + + public function constructAll() { + } + + + /** + * Returns all varaition tests as an array of arrays + * + * @return string + */ + public function getVariationTests() { + return $this->variationTests; + } + +} +?>
\ No newline at end of file |
