From cba448a9d358451338d57c5e45f7c7e06f3143d2 Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Thu, 7 May 2009 09:21:43 +0000 Subject: Replacing generate script with a new version --- .../src/testcase/gtVariationTestCase.php | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php (limited to 'scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php') diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php new file mode 100644 index 0000000000..039367d5b3 --- /dev/null +++ b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCase.php @@ -0,0 +1,55 @@ + +subject->getInitialisationStatements(); + for($i=0; $iargumentNumber -1) ) { + $this->testCase[] = $statements[$i]; + } + } + $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); + } + + public function addVariationCode() { + $this->testCase = gtCodeSnippet::append($this->variationData, $this->testCase); + $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); + } + + public function constructSubjectCalls() { + $this->argInitVariation(); + $this->addVariationCode(); + $this->subjectCalls(); + } + + public function addVariationEcho() { + $this->testCase[] = "echo \"*** Test substituting argument ".$this->argumentNumber." with ".$this->variationData." values ***\\n\";"; + $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); + } + +} +?> \ No newline at end of file -- cgit v1.2.1