diff options
| author | Sean Finney <seanius@debian.org> | 2009-06-24 22:49:04 +0200 |
|---|---|---|
| committer | Sean Finney <seanius@debian.org> | 2009-06-24 22:49:04 +0200 |
| commit | 84f4ca9b07fe5b73d840258f4aa7c1eb534c4253 (patch) | |
| tree | 9829bd578af8a4a8b42b04277f9067e00dc5ad90 /scripts/dev/generate-phpt/src/testcase/gtVariationContainer.php | |
| parent | 6821b67124604da690c5e9276d5370d679c63ac8 (diff) | |
| download | php-84f4ca9b07fe5b73d840258f4aa7c1eb534c4253.tar.gz | |
Imported Upstream version 5.3.0~RC4upstream/5.3.0_RC4upstream/5.3.0.RC4
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 000000000..59951707c --- /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 |
