From ba138a3746b3077ebe5b7356b5b49f21cfc30438 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Mon, 23 Jul 2018 17:38:26 +0200 Subject: =?UTF-8?q?Removed=20the=20generated-tests=20library,=20this=20is?= =?UTF-8?q?=20a=20left=20Z=C3=B6e's=20phpruntests=20repository=20it=20seem?= =?UTF-8?q?s=20and=20never=20fully=20implemented.=20The=20only=20times=20t?= =?UTF-8?q?his=20part=20of=20the=20code=20has=20been=20touched=20throughou?= =?UTF-8?q?t=20the=20years=20has=20been=20minor=20PRs=20and=20entire=20php?= =?UTF-8?q?-src=20grep=20commits.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If anything this belongs to the phpruntests.git repository. --- .../src/testcase/gtVariationTestCaseMethod.php | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php (limited to 'scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php') diff --git a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php b/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php deleted file mode 100644 index a9c921f9db..0000000000 --- a/scripts/dev/generate-phpt/src/testcase/gtVariationTestCaseMethod.php +++ /dev/null @@ -1,68 +0,0 @@ -optionalSections = $opt; - } - - /** - * Set data neede to construct variation tests - * - * @param gtMethod $method - * @param string $argumentNumber - * @param string $variationData - */ - public function setUp(gtMethod $method, $argumentNumber, $variationData) { - $this->subject = $method; - $this->argumentNumber = $argumentNumber; - $this->variationData = $variationData; - } - - - /** - * Constructs the test case as a array of strings - * - */ - public function constructTestCase() { - $this->constructCommonHeaders(); - - $this->addVariationEcho(); - - $this->constructorArgInit(); - $this->constructorCreateInstance(); - - $this->constructSubjectcalls(); - $this->constructCommonClosing(); - - } - - public function testHeader() { - $this->testCase[] = "--TEST--"; - $this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getName()."() by substituting argument ".$this->argumentNumber." with ".$this->variationData." values."; - } - - public function subjectCalls() { - $this->testCase = gtCodeSnippet::append('loopStart', $this->testCase); - // Construct the argument list to pass to the method being tested - $argumentList = explode(",", $this->subject->getMaximumArgumentList()); - $argumentList[$this->argumentNumber -1 ] = "\$var "; - $list = implode(", ", $argumentList); - - - $this->testCase[] = " var_dump(\$class->".$this->subject->getName()."( ".$list." ) );"; - $this->testCase = gtCodeSnippet::append('loopClose', $this->testCase); - - } - -} - -?> \ No newline at end of file -- cgit v1.2.1