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/gtBasicTestCaseMethod.php | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php (limited to 'scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php') diff --git a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php b/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php deleted file mode 100644 index 3d3896e233..0000000000 --- a/scripts/dev/generate-phpt/src/testcase/gtBasicTestCaseMethod.php +++ /dev/null @@ -1,52 +0,0 @@ -optionalSections = $opt; - } - - /** - * Set the method - * - * @param gtMethod $method - */ - public function setMethod($method) { - $this->subject = $method; - } - -public function constructTestCase() { - $this->constructCommonHeaders(); - - $this->addBasicEcho(); - - $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 calling it with its expected arguments"; - - } - - public function subjectCalls() { - $lists = $this->subject->getValidArgumentLists(); - - foreach($lists as $list){ - $this->testCase[] = "var_dump( \$class->".$this->subject->getName()."( ".$list." ) );"; - $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); - } - $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); - } - -} -?> \ No newline at end of file -- cgit v1.2.1