diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2012-02-15 20:40:37 +0100 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2012-02-15 20:40:37 +0100 |
commit | dccdeca2581f705c69eb4266aa646173f588a9de (patch) | |
tree | f4cb27fc31b331e03f14cf1c2a1f4719ebb62cdc /3rdparty/simpletest/detached.php | |
parent | c2fb5fed029a77f4cdcd6a8b9a6308ef40091639 (diff) | |
download | nextcloud-server-dccdeca2581f705c69eb4266aa646173f588a9de.tar.gz nextcloud-server-dccdeca2581f705c69eb4266aa646173f588a9de.zip |
remove the 3rdparty files. everything is now in https://gitorious.org/owncloud/3rdparty
Diffstat (limited to '3rdparty/simpletest/detached.php')
-rwxr-xr-x | 3rdparty/simpletest/detached.php | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/3rdparty/simpletest/detached.php b/3rdparty/simpletest/detached.php deleted file mode 100755 index a325e140d02..00000000000 --- a/3rdparty/simpletest/detached.php +++ /dev/null @@ -1,96 +0,0 @@ -<?php -/** - * base include file for SimpleTest - * @package SimpleTest - * @subpackage UnitTester - * @version $Id: detached.php 1784 2008-04-26 13:07:14Z pp11 $ - */ - -/**#@+ - * include other SimpleTest class files - */ -require_once(dirname(__FILE__) . '/xml.php'); -require_once(dirname(__FILE__) . '/shell_tester.php'); -/**#@-*/ - -/** - * Runs an XML formated test in a separate process. - * @package SimpleTest - * @subpackage UnitTester - */ -class DetachedTestCase { - private $command; - private $dry_command; - private $size; - - /** - * Sets the location of the remote test. - * @param string $command Test script. - * @param string $dry_command Script for dry run. - * @access public - */ - function __construct($command, $dry_command = false) { - $this->command = $command; - $this->dry_command = $dry_command ? $dry_command : $command; - $this->size = false; - } - - /** - * Accessor for the test name for subclasses. - * @return string Name of the test. - * @access public - */ - function getLabel() { - return $this->command; - } - - /** - * Runs the top level test for this class. Currently - * reads the data as a single chunk. I'll fix this - * once I have added iteration to the browser. - * @param SimpleReporter $reporter Target of test results. - * @returns boolean True if no failures. - * @access public - */ - function run(&$reporter) { - $shell = &new SimpleShell(); - $shell->execute($this->command); - $parser = &$this->createParser($reporter); - if (! $parser->parse($shell->getOutput())) { - trigger_error('Cannot parse incoming XML from [' . $this->command . ']'); - return false; - } - return true; - } - - /** - * Accessor for the number of subtests. - * @return integer Number of test cases. - * @access public - */ - function getSize() { - if ($this->size === false) { - $shell = &new SimpleShell(); - $shell->execute($this->dry_command); - $reporter = &new SimpleReporter(); - $parser = &$this->createParser($reporter); - if (! $parser->parse($shell->getOutput())) { - trigger_error('Cannot parse incoming XML from [' . $this->dry_command . ']'); - return false; - } - $this->size = $reporter->getTestCaseCount(); - } - return $this->size; - } - - /** - * Creates the XML parser. - * @param SimpleReporter $reporter Target of test results. - * @return SimpleTestXmlListener XML reader. - * @access protected - */ - protected function &createParser(&$reporter) { - return new SimpleTestXmlParser($reporter); - } -} -?>
\ No newline at end of file |