Public 멤버 함수 | |
| DetachedTestCase ($command, $dry_command=false) | |
| getLabel () | |
| run (&$reporter) | |
| getSize () | |
| & | _createParser (&$reporter) |
Public 속성 | |
| $_command | |
| $_dry_command | |
| $_size | |
detached.php 파일의 21 번째 라인에서 정의되었습니다.
| & DetachedTestCase::_createParser | ( | &$ | reporter | ) |
Creates the XML parser.
| SimpleReporter | $reporter Target of test results. |
detached.php 파일의 92 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : getSize(), run().
00092 { 00093 return new SimpleTestXmlParser($reporter); 00094 }
| DetachedTestCase::DetachedTestCase | ( | $ | command, | |
| $ | dry_command = false | |||
| ) |
Sets the location of the remote test.
| string | $command Test script. | |
| string | $dry_command Script for dry run. public |
detached.php 파일의 32 번째 라인에서 정의되었습니다.
다음을 참조함 : $command.
| DetachedTestCase::getLabel | ( | ) |
Accessor for the test name for subclasses.
detached.php 파일의 43 번째 라인에서 정의되었습니다.
| DetachedTestCase::getSize | ( | ) |
Accessor for the number of subtests.
detached.php 파일의 71 번째 라인에서 정의되었습니다.
다음을 참조함 : _createParser().
00071 { 00072 if ($this->_size === false) { 00073 $shell = &new SimpleShell(); 00074 $shell->execute($this->_dry_command); 00075 $reporter = &new SimpleReporter(); 00076 $parser = &$this->_createParser($reporter); 00077 if (! $parser->parse($shell->getOutput())) { 00078 trigger_error('Cannot parse incoming XML from [' . $this->_dry_command . ']'); 00079 return false; 00080 } 00081 $this->_size = $reporter->getTestCaseCount(); 00082 } 00083 return $this->_size; 00084 }

| DetachedTestCase::run | ( | &$ | reporter | ) |
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.
| SimpleReporter | $reporter Target of test results. |
detached.php 파일의 55 번째 라인에서 정의되었습니다.
다음을 참조함 : _createParser().
00055 { 00056 $shell = &new SimpleShell(); 00057 $shell->execute($this->_command); 00058 $parser = &$this->_createParser($reporter); 00059 if (! $parser->parse($shell->getOutput())) { 00060 trigger_error('Cannot parse incoming XML from [' . $this->_command . ']'); 00061 return false; 00062 } 00063 return true; 00064 }

| DetachedTestCase::$_command |
detached.php 파일의 22 번째 라인에서 정의되었습니다.
| DetachedTestCase::$_dry_command |
detached.php 파일의 23 번째 라인에서 정의되었습니다.
| DetachedTestCase::$_size |
detached.php 파일의 24 번째 라인에서 정의되었습니다.
1.6.1