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/gtBasicTestCaseFunction.php | 62 ---------------------- 1 file changed, 62 deletions(-) delete mode 100644 scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php (limited to 'scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php') diff --git a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php deleted file mode 100644 index f64c6daf32..0000000000 --- a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseFunction.php +++ /dev/null @@ -1,62 +0,0 @@ -optionalSections = $opt; - } - - /** - * Set the function name - * - * @param gtFunction $function - */ - public function setFunction($function) { - $this->subject = $function; - } - - public function constructTestCase() { - $this->constructCommonHeaders(); - - $this->addBasicEcho(); - - $this->constructSubjectCalls(); - - $this->constructCommonClosing(); - - } - - - /** - * Construct test case header - * - */ - public function testHeader() { - //Opening section and start of test case array. - $this->testCase[] = "--TEST--"; - $this->testCase[] = "Test function ".$this->subject->getName()."() by calling it with its expected arguments"; - } - - /** - * Add the test section to call the function - * - */ - public function subjectCalls() { - // Construct the argument list to pass to the function being tested - $lists = $this->subject->getValidArgumentLists(); - - foreach($lists as $list){ - - $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); - $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );"; - } - $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); - } - -} -?> \ No newline at end of file -- cgit v1.2.1